home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 7 / BBS in a Box - Macintosh - Volume VII (BBS in a Box) (January 1993).iso / Files / Prog / A / 007.FracApp.cpt / UFracApp.p < prev   
MacBinary  |  1988-08-01  |  15.8 KB  |  [TEXT/MPS ]

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

This file was processed as: MacBinary (archive/macBinary).

You can browse this item here: UFracApp.p

ConfidenceProgramDetectionMatch TypeSupport
66% dexvert ZX81 Sinclair BASIC (image/sinclairBASIC) ext Supported
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, inited, Mon Aug 1 17:07:02 1988, modified Mon Aug 1 17:07:02 1988, creator 'MPS ', type ASCII, 15402 bytes "UFracApp.p" , at 0x3caa 494 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[MPS ]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0a 55 46 72 61 63 41 | 70 70 2e 70 00 00 00 00 |..UFracA|pp.p....|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4d 50 53 | 20 01 00 00 00 00 00 00 |.TEXTMPS| .......|
|00000050| 00 00 00 00 00 3c 2a 00 | 00 01 ee 9f 1a 8d f6 9f |.....<*.|........|
|00000060| 1a 8d f6 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 7c 82 00 00 |........|....|...|
|00000080| 7b 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |{-------|--------|
|00000090| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000000a0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000000b0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000000c0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 0d |--------|-------.|
|000000d0| 23 0d 23 09 41 70 70 6c | 65 20 4d 61 63 69 6e 74 |#.#.Appl|e Macint|
|000000e0| 6f 73 68 20 44 65 76 65 | 6c 6f 70 65 72 20 54 65 |osh Deve|loper Te|
|000000f0| 63 68 6e 69 63 61 6c 20 | 53 75 70 70 6f 72 74 0d |chnical |Support.|
|00000100| 23 0d 23 09 4d 61 63 41 | 70 70 20 43 6f 6c 6f 72 |#.#.MacA|pp Color|
|00000110| 20 51 75 69 63 6b 44 72 | 61 77 20 46 72 61 63 74 | QuickDr|aw Fract|
|00000120| 61 6c 20 53 61 6d 70 6c | 65 20 41 70 70 6c 69 63 |al Sampl|e Applic|
|00000130| 61 74 69 6f 6e 0d 23 0d | 23 09 46 72 61 63 41 70 |ation.#.|#.FracAp|
|00000140| 70 0d 23 0d 23 09 55 46 | 72 61 63 41 70 70 2e 70 |p.#.#.UF|racApp.p|
|00000150| 09 2d 09 50 61 73 63 61 | 6c 20 53 6f 75 72 63 65 |.-.Pasca|l Source|
|00000160| 0d 23 0d 23 09 43 6f 70 | 79 72 69 67 68 74 20 a9 |.#.#.Cop|yright .|
|00000170| 20 31 39 38 38 20 41 70 | 70 6c 65 20 43 6f 6d 70 | 1988 Ap|ple Comp|
|00000180| 75 74 65 72 2c 20 49 6e | 63 2e 0d 23 09 41 6c 6c |uter, In|c..#.All|
|00000190| 20 72 69 67 68 74 73 20 | 72 65 73 65 72 76 65 64 | rights |reserved|
|000001a0| 2e 0d 23 0d 23 09 56 65 | 72 73 69 6f 6e 73 3a 09 |..#.#.Ve|rsions:.|
|000001b0| 31 2e 30 09 09 09 09 09 | 38 2f 38 38 0d 23 0d 23 |1.0.....|8/88.#.#|
|000001c0| 09 43 6f 6d 70 6f 6e 65 | 6e 74 73 3a 09 4d 46 72 |.Compone|nts:.MFr|
|000001d0| 61 63 41 70 70 2e 70 09 | 09 09 41 75 67 75 73 74 |acApp.p.|..August|
|000001e0| 20 31 2c 20 31 39 38 38 | 0d 23 09 09 09 09 55 46 | 1, 1988|.#....UF|
|000001f0| 72 61 63 41 70 70 2e 70 | 09 09 09 41 75 67 75 73 |racApp.p|...Augus|
|00000200| 74 20 31 2c 20 31 39 38 | 38 0d 23 09 09 09 09 55 |t 1, 198|8.#....U|
|00000210| 46 72 61 63 41 70 70 2e | 69 6e 63 31 2e 70 09 09 |FracApp.|inc1.p..|
|00000220| 41 75 67 75 73 74 20 31 | 2c 20 31 39 38 38 0d 23 |August 1|, 1988.#|
|00000230| 09 09 09 09 46 72 61 63 | 41 70 70 2e 72 09 09 09 |....Frac|App.r...|
|00000240| 41 75 67 75 73 74 20 31 | 2c 20 31 39 38 38 0d 23 |August 1|, 1988.#|
|00000250| 09 09 09 09 46 72 61 63 | 41 70 70 2e 6d 61 6b 65 |....Frac|App.make|
|00000260| 09 09 41 75 67 75 73 74 | 20 31 2c 20 31 39 38 38 |..August| 1, 1988|
|00000270| 0d 23 0d 23 09 54 68 69 | 73 20 69 73 20 61 20 70 |.#.#.Thi|s is a p|
|00000280| 72 6f 67 72 61 6d 20 74 | 6f 20 63 61 6c 63 75 6c |rogram t|o calcul|
|00000290| 61 74 65 20 74 68 65 20 | 4d 61 6e 64 65 6c 62 72 |ate the |Mandelbr|
|000002a0| 6f 74 20 73 65 74 2c 20 | 61 6c 6c 6f 77 69 6e 67 |ot set, |allowing|
|000002b0| 20 79 6f 75 20 74 6f 20 | 7a 6f 6f 6d 20 69 6e 20 | you to |zoom in |
|000002c0| 6f 6e 20 61 72 65 61 73 | 0d 23 09 74 68 61 74 20 |on areas|.#.that |
|000002d0| 61 72 65 20 73 65 6c 65 | 63 74 65 64 20 77 69 74 |are sele|cted wit|
|000002e0| 68 20 74 68 65 20 6d 6f | 75 73 65 2e 20 20 54 68 |h the mo|use. Th|
|000002f0| 65 72 65 20 61 72 65 20 | 73 6f 6d 65 20 73 70 65 |ere are |some spe|
|00000300| 63 69 61 6c 20 63 6f 6c | 6f 72 20 74 72 69 63 6b |cial col|or trick|
|00000310| 73 20 70 6c 61 79 65 64 | 0d 23 09 69 6e 20 6f 72 |s played|.#.in or|
|00000320| 64 65 72 20 74 6f 20 6d | 61 6b 65 20 74 68 65 20 |der to m|ake the |
|00000330| 70 72 6f 67 72 61 6d 20 | 6d 6f 72 65 20 6a 61 7a |program |more jaz|
|00000340| 7a 79 2e 20 20 41 20 73 | 70 65 63 69 61 6c 20 63 |zy. A s|pecial c|
|00000350| 6f 6c 6f 72 20 74 61 62 | 6c 65 20 69 73 20 75 73 |olor tab|le is us|
|00000360| 65 64 20 74 6f 20 67 69 | 76 65 0d 23 09 73 6d 6f |ed to gi|ve.#.smo|
|00000370| 6f 74 68 20 74 72 61 6e | 73 69 74 69 6f 6e 73 20 |oth tran|sitions |
|00000380| 66 72 6f 6d 20 6f 6e 65 | 20 63 6f 6c 6f 72 20 74 |from one| color t|
|00000390| 6f 20 74 68 65 20 6e 65 | 78 74 2e 20 20 43 6f 6c |o the ne|xt. Col|
|000003a0| 6f 72 20 74 61 62 6c 65 | 20 61 6e 69 6d 61 74 69 |or table| animati|
|000003b0| 6f 6e 20 69 73 20 61 6c | 73 6f 0d 23 09 73 75 70 |on is al|so.#.sup|
|000003c0| 70 6f 72 74 65 64 2c 20 | 66 6f 72 20 74 68 65 20 |ported, |for the |
|000003d0| 77 6f 77 65 6d 20 65 66 | 66 65 63 74 20 6f 66 20 |wowem ef|fect of |
|000003e0| 66 6c 6f 77 69 6e 67 20 | 4d 61 6e 64 65 6c 62 72 |flowing |Mandelbr|
|000003f0| 6f 74 20 69 6d 61 67 65 | 73 2e 20 0d 23 09 54 68 |ot image|s. .#.Th|
|00000400| 65 20 70 72 6f 67 72 61 | 6d 20 69 73 20 77 72 69 |e progra|m is wri|
|00000410| 74 74 65 6e 20 69 6e 20 | 4d 61 63 41 70 70 20 31 |tten in |MacApp 1|
|00000420| 2e 31 2c 20 77 68 69 63 | 68 20 65 78 70 6c 61 69 |.1, whic|h explai|
|00000430| 6e 73 20 77 68 79 20 69 | 74 20 68 61 73 20 61 20 |ns why i|t has a |
|00000440| 72 65 61 6c 20 75 73 65 | 72 0d 23 09 69 6e 74 65 |real use|r.#.inte|
|00000450| 72 66 61 63 65 2e 20 20 | 4d 61 6e 64 65 6c 62 72 |rface. |Mandelbr|
|00000460| 6f 74 20 69 6d 61 67 65 | 73 20 74 61 6b 65 20 61 |ot image|s take a|
|00000470| 62 6f 75 74 20 33 30 20 | 6d 69 6e 75 74 65 73 20 |bout 30 |minutes |
|00000480| 74 6f 20 63 61 6c 63 75 | 6c 61 74 65 2e 20 20 49 |to calcu|late. I|
|00000490| 74 20 69 73 0d 23 09 4a | 75 67 67 6c 65 72 20 61 |t is.#.J|uggler a|
|000004a0| 77 61 72 65 20 73 6f 20 | 79 6f 75 20 63 61 6e 20 |ware so |you can |
|000004b0| 70 75 74 20 74 68 65 20 | 70 72 6f 67 72 61 6d 20 |put the |program |
|000004c0| 69 6e 20 74 68 65 20 62 | 61 63 6b 67 72 6f 75 6e |in the b|ackgroun|
|000004d0| 64 20 77 68 65 72 65 20 | 69 74 20 77 69 6c 6c 0d |d where |it will.|
|000004e0| 23 09 63 6f 6e 74 69 6e | 75 65 20 74 6f 20 63 61 |#.contin|ue to ca|
|000004f0| 6c 63 75 6c 61 74 65 2c | 20 77 68 69 6c 65 20 79 |lculate,| while y|
|00000500| 6f 75 20 64 6f 20 73 6f | 6d 65 74 68 69 6e 67 20 |ou do so|mething |
|00000510| 6d 6f 72 65 20 69 6d 70 | 6f 72 74 61 6e 74 2c 20 |more imp|ortant, |
|00000520| 6c 69 6b 65 20 6c 6f 6f | 6b 20 61 74 20 0d 23 09 |like loo|k at .#.|
|00000530| 74 68 65 20 73 6f 75 72 | 63 65 20 63 6f 64 65 2e |the sour|ce code.|
|00000540| 20 20 49 74 20 61 6c 73 | 6f 20 68 61 6e 64 6c 65 | It als|o handle|
|00000550| 73 20 6d 75 6c 74 69 70 | 6c 65 20 64 6f 63 75 6d |s multip|le docum|
|00000560| 65 6e 74 73 2c 20 61 6e | 64 20 72 65 61 64 69 6e |ents, an|d readin|
|00000570| 67 2f 77 72 69 74 69 6e | 67 20 6f 66 0d 23 09 50 |g/writin|g of.#.P|
|00000580| 49 43 54 20 66 69 6c 65 | 73 20 75 73 69 6e 67 20 |ICT file|s using |
|00000590| 74 68 65 20 62 6f 74 74 | 6c 65 6e 65 63 6b 73 20 |the bott|lenecks |
|000005a0| 74 6f 20 6d 69 6e 69 6d | 69 7a 65 20 74 68 65 20 |to minim|ize the |
|000005b0| 6d 65 6d 6f 72 79 20 68 | 69 74 2e 0d 23 09 0d 23 |memory h|it..#..#|
|000005c0| 09 54 68 69 73 20 70 72 | 6f 67 72 61 6d 20 69 73 |.This pr|ogram is|
|000005d0| 20 69 6e 74 65 6e 64 65 | 64 20 74 6f 20 62 65 20 | intende|d to be |
|000005e0| 61 20 72 65 61 6c 20 77 | 6f 72 6c 64 20 65 78 61 |a real w|orld exa|
|000005f0| 6d 70 6c 65 20 6f 66 20 | 68 61 6e 64 6c 69 6e 67 |mple of |handling|
|00000600| 20 63 6f 6c 6f 72 20 69 | 6e 20 61 0d 23 09 6e 6f | color i|n a.#.no|
|00000610| 6e 74 72 69 76 69 61 6c | 20 66 61 73 68 69 6f 6e |ntrivial| fashion|
|00000620| 2e 20 20 41 73 20 73 75 | 63 68 20 69 74 20 68 61 |. As su|ch it ha|
|00000630| 73 20 73 6f 6d 65 20 72 | 61 74 68 65 72 20 73 70 |s some r|ather sp|
|00000640| 65 63 69 61 6c 20 63 6f | 6c 6f 72 20 72 65 71 75 |ecial co|lor requ|
|00000650| 69 72 65 6d 65 6e 74 73 | 2c 0d 23 09 61 6e 64 20 |irements|,.#.and |
|00000660| 74 68 6f 73 65 20 64 6f | 6e d5 74 20 6d 61 74 63 |those do|n.t matc|
|00000670| 68 20 74 68 65 20 63 75 | 72 72 65 6e 74 20 73 79 |h the cu|rrent sy|
|00000680| 73 74 65 6d 20 61 72 63 | 68 69 74 65 63 74 75 72 |stem arc|hitectur|
|00000690| 65 20 76 65 72 79 20 77 | 65 6c 6c 2e 20 20 54 68 |e very w|ell. Th|
|000006a0| 65 20 70 72 6f 67 72 61 | 6d 0d 23 09 69 73 20 64 |e progra|m.#.is d|
|000006b0| 65 73 69 67 6e 65 64 20 | 74 6f 20 62 65 20 63 6f |esigned |to be co|
|000006c0| 6d 70 61 74 69 62 6c 65 | 20 77 69 74 68 20 74 68 |mpatible| with th|
|000006d0| 65 20 66 75 74 75 72 65 | 2c 20 69 74 20 77 69 6c |e future|, it wil|
|000006e0| 6c 20 6e 6f 74 20 62 72 | 65 61 6b 20 69 6e 20 66 |l not br|eak in f|
|000006f0| 75 74 75 72 65 0d 23 09 | 73 79 73 74 65 6d 73 2e |uture.#.|systems.|
|00000700| 20 20 48 6f 77 65 76 65 | 72 2c 20 69 74 20 64 6f | Howeve|r, it do|
|00000710| 65 73 20 6e 6f 74 20 75 | 73 65 20 74 68 65 20 50 |es not u|se the P|
|00000720| 61 6c 65 74 74 65 20 4d | 61 6e 61 67 65 72 2c 20 |alette M|anager, |
|00000730| 77 68 69 63 68 20 6d 65 | 61 6e 73 20 74 68 61 74 |which me|ans that|
|00000740| 0d 23 09 74 68 65 72 65 | 20 77 69 6c 6c 20 62 65 |.#.there| will be|
|00000750| 20 73 69 74 75 61 74 69 | 6f 6e 73 20 77 68 65 72 | situati|ons wher|
|00000760| 65 20 74 68 65 20 63 6f | 6c 6f 72 73 20 77 69 6c |e the co|lors wil|
|00000770| 6c 20 6e 6f 74 20 6c 6f | 6f 6b 20 72 69 67 68 74 |l not lo|ok right|
|00000780| 20 69 6e 20 65 69 74 68 | 65 72 20 46 72 61 63 41 | in eith|er FracA|
|00000790| 70 70 0d 23 09 6f 72 20 | 61 6e 6f 74 68 65 72 20 |pp.#.or |another |
|000007a0| 70 72 6f 67 72 61 6d 20 | 72 75 6e 6e 69 6e 67 20 |program |running |
|000007b0| 75 6e 64 65 72 20 4d 75 | 6c 74 69 46 69 6e 64 65 |under Mu|ltiFinde|
|000007c0| 72 2e 20 20 54 68 65 20 | 61 70 70 72 6f 61 63 68 |r. The |approach|
|000007d0| 20 74 68 61 74 20 46 72 | 61 63 41 70 70 0d 23 09 | that Fr|acApp.#.|
|000007e0| 75 73 65 73 20 69 73 20 | 74 68 75 73 20 6e 6f 74 |uses is |thus not|
|000007f0| 20 74 68 65 20 70 72 65 | 66 65 72 72 65 64 20 41 | the pre|ferred A|
|00000800| 70 70 6c 65 20 61 70 70 | 72 6f 61 63 68 20 61 6e |pple app|roach an|
|00000810| 64 20 64 6f 65 73 20 4e | 4f 54 20 68 61 76 65 20 |d does N|OT have |
|00000820| 74 68 65 20 41 70 70 6c | 65 0d 23 09 73 65 61 6c |the Appl|e.#.seal|
|00000830| 20 6f 66 20 61 70 70 72 | 6f 76 61 6c 20 66 72 6f | of appr|oval fro|
|00000840| 6d 20 65 6e 67 69 6e 65 | 65 72 69 6e 67 2e 20 20 |m engine|ering. |
|00000850| 54 68 65 20 6f 6e 6c 79 | 20 77 61 79 20 74 6f 20 |The only| way to |
|00000860| 67 65 74 20 74 68 65 20 | 73 74 61 6d 70 20 6f 66 |get the |stamp of|
|00000870| 20 61 70 70 72 6f 76 61 | 6c 0d 23 09 69 73 20 74 | approva|l.#.is t|
|00000880| 6f 20 75 73 65 20 74 68 | 65 20 50 61 6c 65 74 74 |o use th|e Palett|
|00000890| 65 20 4d 61 6e 61 67 65 | 72 2e 20 20 54 6f 20 64 |e Manage|r. To d|
|000008a0| 6f 20 61 20 70 72 6f 67 | 72 61 6d 20 6f 66 20 74 |o a prog|ram of t|
|000008b0| 68 69 73 20 66 6f 72 6d | 2c 20 79 6f 75 20 63 61 |his form|, you ca|
|000008c0| 6e 6e 6f 74 0d 23 09 75 | 73 65 20 74 68 65 20 50 |nnot.#.u|se the P|
|000008d0| 61 6c 65 74 74 65 20 4d | 61 6e 61 67 65 72 20 77 |alette M|anager w|
|000008e0| 69 74 68 6f 75 74 20 73 | 6f 6d 65 20 65 78 74 72 |ithout s|ome extr|
|000008f0| 61 20 68 61 63 6b 73 20 | 74 68 61 74 20 61 72 65 |a hacks |that are|
|00000900| 20 63 6f 6d 70 61 74 69 | 62 69 6c 69 74 79 0d 23 | compati|bility.#|
|00000910| 09 72 69 73 6b 73 20 69 | 6e 20 74 68 65 6d 73 65 |.risks i|n themse|
|00000920| 6c 76 65 73 2e 20 20 53 | 6f 2e 2e 2e 20 75 73 65 |lves. S|o... use|
|00000930| 20 61 74 20 79 6f 75 72 | 20 6f 77 6e 20 72 69 73 | at your| own ris|
|00000940| 6b 2e 20 20 49 66 20 79 | 6f 75 20 61 72 65 20 66 |k. If y|ou are f|
|00000950| 6f 72 63 65 64 20 74 6f | 20 72 65 76 69 73 65 20 |orced to| revise |
|00000960| 79 6f 75 72 20 0d 23 09 | 70 72 6f 67 72 61 6d 20 |your .#.|program |
|00000970| 62 65 63 61 75 73 65 20 | 79 6f 75 20 66 6f 6c 6c |because |you foll|
|00000980| 6f 77 65 64 20 74 68 69 | 73 20 61 73 20 61 6e 20 |owed thi|s as an |
|00000990| 65 78 61 6d 70 6c 65 2c | 20 79 6f 75 20 63 61 6e |example,| you can|
|000009a0| 6e 6f 74 20 67 72 69 70 | 65 20 74 6f 20 41 70 70 |not grip|e to App|
|000009b0| 6c 65 2c 20 73 69 6e 63 | 65 0d 23 09 69 74 20 69 |le, sinc|e.#.it i|
|000009c0| 73 20 6e 6f 74 20 66 75 | 6c 6c 79 20 61 70 70 72 |s not fu|lly appr|
|000009d0| 6f 76 65 64 2e 20 20 59 | 6f 75 20 6a 75 73 74 20 |oved. Y|ou just |
|000009e0| 68 61 76 65 20 74 6f 20 | 63 68 61 6e 67 65 20 79 |have to |change y|
|000009f0| 6f 75 72 20 70 72 6f 67 | 72 61 6d 2c 20 77 68 69 |our prog|ram, whi|
|00000a00| 63 68 20 49 20 68 6f 70 | 65 20 69 73 20 6e 6f 0d |ch I hop|e is no.|
|00000a10| 23 09 62 69 67 20 64 65 | 61 6c 2e 20 20 59 6f 75 |#.big de|al. You|
|00000a20| 20 63 61 6e 20 67 69 76 | 65 20 74 68 69 73 20 63 | can giv|e this c|
|00000a30| 6f 64 65 20 74 6f 20 6f | 74 68 65 72 20 70 65 6f |ode to o|ther peo|
|00000a40| 70 6c 65 2c 20 61 73 20 | 6c 6f 6e 67 20 61 73 20 |ple, as |long as |
|00000a50| 74 68 65 79 20 72 65 63 | 6f 67 6e 69 7a 65 0d 23 |they rec|ognize.#|
|00000a60| 09 74 68 61 74 20 69 74 | 20 69 73 20 6e 6f 74 20 |.that it| is not |
|00000a70| 66 75 6c 6c 79 20 61 70 | 70 72 6f 76 65 64 20 74 |fully ap|proved t|
|00000a80| 6f 6f 2e 20 0d 23 09 0d | 23 09 55 6e 6c 65 73 73 |oo. .#..|#.Unless|
|00000a90| 20 79 6f 75 20 68 61 76 | 65 20 76 65 72 79 20 73 | you hav|e very s|
|00000aa0| 70 65 63 69 61 6c 20 63 | 6f 6c 6f 72 20 72 65 71 |pecial c|olor req|
|00000ab0| 75 69 72 65 6d 65 6e 74 | 73 2c 20 79 6f 75 20 73 |uirement|s, you s|
|00000ac0| 68 6f 75 6c 64 20 75 73 | 65 20 74 68 65 20 50 61 |hould us|e the Pa|
|00000ad0| 6c 65 74 74 65 20 0d 23 | 09 4d 61 6e 61 67 65 72 |lette .#|.Manager|
|00000ae0| 2e 20 20 49 74 20 77 6f | 72 6b 73 20 66 6f 72 20 |. It wo|rks for |
|00000af0| 6d 6f 73 74 20 74 68 69 | 6e 67 73 2c 20 61 6e 64 |most thi|ngs, and|
|00000b00| 20 69 73 20 6d 75 63 68 | 20 65 61 73 69 65 72 20 | is much| easier |
|00000b10| 74 6f 20 75 73 65 20 74 | 68 61 6e 20 74 68 65 0d |to use t|han the.|
|00000b20| 23 09 61 70 70 72 6f 61 | 63 68 20 74 61 6b 65 6e |#.approa|ch taken|
|00000b30| 20 68 65 72 65 2e 20 20 | 54 68 65 72 65 20 61 72 | here. |There ar|
|00000b40| 65 20 61 20 66 65 77 20 | 74 68 69 6e 67 73 20 69 |e a few |things i|
|00000b50| 74 20 77 6f 6e d5 74 20 | 64 6f 20 6f 66 20 63 6f |t won.t |do of co|
|00000b60| 75 72 73 65 2c 20 6c 65 | 61 64 69 6e 67 0d 23 09 |urse, le|ading.#.|
|00000b70| 74 6f 20 74 68 69 73 20 | 63 6f 64 65 2e 20 20 49 |to this |code. I|
|00000b80| 66 20 79 6f 75 20 63 61 | 6e 20 64 6f 20 69 74 2c |f you ca|n do it,|
|00000b90| 20 75 73 65 20 74 68 65 | 20 50 61 6c 65 74 74 65 | use the| Palette|
|00000ba0| 20 4d 61 6e 61 67 65 72 | 20 61 6e 64 20 73 61 76 | Manager| and sav|
|00000bb0| 65 20 79 6f 75 72 73 65 | 6c 66 0d 23 09 73 6f 6d |e yourse|lf.#.som|
|00000bc0| 65 20 67 72 69 65 66 2e | 0d 23 09 09 09 57 72 69 |e grief.|.#...Wri|
|00000bd0| 74 74 65 6e 20 69 6e 20 | 4d 61 63 41 70 70 20 4f |tten in |MacApp O|
|00000be0| 62 6a 65 63 74 20 50 61 | 73 63 61 6c 20 63 6f 64 |bject Pa|scal cod|
|00000bf0| 65 2e 0d 23 09 09 09 43 | 6f 6d 70 61 74 69 62 69 |e..#...C|ompatibi|
|00000c00| 6c 69 74 79 20 72 61 74 | 69 6e 67 20 3d 20 32 2e |lity rat|ing = 2.|
|00000c10| 20 20 28 6e 6f 74 68 69 | 6e 67 20 77 69 6c 6c 20 | (nothi|ng will |
|00000c20| 62 72 65 61 6b 2c 20 62 | 75 74 20 69 74 20 6d 61 |break, b|ut it ma|
|00000c30| 79 20 6e 6f 74 0d 23 09 | 09 09 09 61 6c 77 61 79 |y not.#.|...alway|
|00000c40| 73 20 6c 6f 6f 6b 20 63 | 6f 72 72 65 63 74 2e 29 |s look c|orrect.)|
|00000c50| 0d 23 0d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |.#.-----|--------|
|00000c60| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000c70| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000c80| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000c90| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000ca0| 2d 7d 0d 7b 43 6f 70 79 | 72 69 67 68 74 20 31 39 |-}.{Copy|right 19|
|00000cb0| 38 38 20 62 79 20 42 6f | 62 2e 20 20 41 6c 6c 20 |88 by Bo|b. All |
|00000cc0| 72 69 67 68 74 73 20 72 | 65 73 65 72 76 65 64 2c |rights r|eserved,|
|00000cd0| 20 73 69 6e 63 65 20 42 | 6f 62 20 68 61 73 20 61 | since B|ob has a|
|00000ce0| 6c 6c 20 72 69 67 68 74 | 73 2e 0d 09 46 65 62 72 |ll right|s...Febr|
|00000cf0| 75 61 72 79 20 31 2c 20 | 31 39 38 38 2e 20 0d 09 |uary 1, |1988. ..|
|00000d00| 57 72 69 74 74 65 6e 20 | 62 79 20 42 6f 33 62 20 |Written |by Bo3b |
|00000d10| 4a 6f 68 6e 73 6f 6e 20 | 6f 66 20 44 65 76 65 6c |Johnson |of Devel|
|00000d20| 6f 70 65 72 20 54 65 63 | 68 6e 69 63 61 6c 20 53 |oper Tec|hnical S|
|00000d30| 75 70 70 6f 72 74 2e 20 | 7d 0d 0d 55 4e 49 54 20 |upport. |}..UNIT |
|00000d40| 55 46 72 61 63 41 70 70 | 3b 0d 0d 28 2a 0d 0d 54 |UFracApp|;..(*..T|
|00000d50| 68 69 73 20 69 73 20 61 | 20 6e 6f 74 20 74 6f 6f |his is a| not too|
|00000d60| 20 73 6d 61 6c 6c 20 61 | 70 70 6c 69 63 61 74 69 | small a|pplicati|
|00000d70| 6f 6e 20 77 68 69 63 68 | 20 63 61 6e 20 63 61 6c |on which| can cal|
|00000d80| 63 75 6c 61 74 65 20 61 | 20 66 72 61 63 74 61 6c |culate a| fractal|
|00000d90| 20 69 6e 20 66 75 6c 6c | 20 63 6f 6c 6f 72 0d 09 | in full| color..|
|00000da0| 6f 6e 20 74 68 65 20 4d | 61 63 20 49 49 2c 20 75 |on the M|ac II, u|
|00000db0| 73 69 6e 67 20 64 69 72 | 65 63 74 20 38 38 31 20 |sing dir|ect 881 |
|00000dc0| 63 6f 64 65 20 66 6f 72 | 20 73 70 65 65 64 2e 20 |code for| speed. |
|00000dd0| 20 49 74 20 73 61 76 65 | 73 20 66 69 6c 65 73 20 | It save|s files |
|00000de0| 6f 6e 20 64 69 73 6b 20 | 61 73 20 50 49 43 54 2e |on disk |as PICT.|
|00000df0| 0d 09 46 6f 72 20 66 75 | 6c 6c 20 69 6e 66 6f 2c |..For fu|ll info,|
|00000e00| 20 73 65 65 20 74 68 65 | 20 69 6d 70 6c 65 6d 65 | see the| impleme|
|00000e10| 6e 74 61 74 69 6f 6e 20 | 66 69 6c 65 2e 0d 0d 2a |ntation |file...*|
|00000e20| 29 0d 0d 49 4e 54 45 52 | 46 41 43 45 0d 0d 55 53 |)..INTER|FACE..US|
|00000e30| 45 53 0d 09 7b 24 4c 4f | 41 44 20 46 72 61 63 41 |ES..{$LO|AD FracA|
|00000e40| 70 70 38 38 31 2e 4c 4f | 41 44 7d 0d 09 09 4d 65 |pp881.LO|AD}...Me|
|00000e50| 6d 54 79 70 65 73 2c 20 | 51 75 69 63 6b 44 72 61 |mTypes, |QuickDra|
|00000e60| 77 2c 20 4f 53 49 6e 74 | 66 2c 20 54 6f 6f 6c 49 |w, OSInt|f, ToolI|
|00000e70| 6e 74 66 2c 20 50 61 63 | 6b 49 6e 74 66 2c 0d 09 |ntf, Pac|kIntf,..|
|00000e80| 09 55 4f 62 6a 65 63 74 | 2c 20 55 4c 69 73 74 2c |.UObject|, UList,|
|00000e90| 20 55 4d 61 63 41 70 70 | 2c 0d 09 09 50 61 6c 65 | UMacApp|,...Pale|
|00000ea0| 74 74 65 4d 67 72 2c 20 | 55 50 72 69 6e 74 69 6e |tteMgr, |UPrintin|
|00000eb0| 67 3b 0d 09 7b 24 4c 4f | 41 44 7d 0d 0d 43 4f 4e |g;..{$LO|AD}..CON|
|00000ec0| 53 54 0d 0d 20 20 7b 43 | 6f 6d 6d 61 6e 64 20 6e |ST.. {C|ommand n|
|00000ed0| 75 6d 62 65 72 73 7d 0d | 0d 09 6b 53 69 67 6e 61 |umbers}.|..kSigna|
|00000ee0| 74 75 72 65 09 09 09 09 | 3d 20 27 41 72 66 20 27 |ture....|= 'Arf '|
|00000ef0| 3b 09 09 7b 41 70 70 6c | 69 63 61 74 69 6f 6e 20 |;..{Appl|ication |
|00000f00| 73 69 67 6e 61 74 75 72 | 65 7d 0d 09 6b 46 69 6c |signatur|e}..kFil|
|00000f10| 65 54 79 70 65 09 09 09 | 09 09 3d 20 27 50 49 43 |eType...|..= 'PIC|
|00000f20| 54 27 3b 09 7b 46 69 6c | 65 2d 74 79 70 65 20 63 |T';.{Fil|e-type c|
|00000f30| 6f 64 65 20 75 73 65 64 | 20 66 6f 72 20 64 6f 63 |ode used| for doc|
|00000f40| 75 6d 65 6e 74 20 66 69 | 6c 65 73 0d 09 09 09 09 |ument fi|les.....|
|00000f50| 09 09 09 09 09 09 09 09 | 09 09 63 72 65 61 74 65 |........|..create|
|00000f60| 64 20 62 79 20 74 68 69 | 73 20 61 70 70 6c 69 63 |d by thi|s applic|
|00000f70| 61 74 69 6f 6e 7d 0d 09 | 6b 46 72 61 63 41 70 70 |ation}..|kFracApp|
|00000f80| 57 69 6e 64 6f 77 49 44 | 09 3d 20 31 30 30 31 3b |WindowID|.= 1001;|
|00000f90| 09 7b 54 68 69 73 20 69 | 73 20 70 61 73 73 65 64 |.{This i|s passed|
|00000fa0| 20 74 6f 20 4e 65 77 53 | 69 6d 70 6c 65 57 69 6e | to NewS|impleWin|
|00000fb0| 64 6f 77 20 61 73 20 74 | 68 65 0d 09 09 09 09 09 |dow as t|he......|
|00000fc0| 09 09 09 09 09 09 09 09 | 09 72 65 73 6f 75 72 63 |........|.resourc|
|00000fd0| 65 20 49 44 20 6f 66 20 | 74 68 65 20 74 68 65 20 |e ID of |the the |
|00000fe0| 57 49 4e 44 20 52 65 73 | 6f 75 72 63 65 0d 09 09 |WIND Res|ource...|
|00000ff0| 09 09 09 09 09 09 09 09 | 09 09 09 09 77 68 69 63 |........|....whic|
|00001000| 68 20 64 65 66 69 6e 65 | 73 20 74 68 65 20 77 69 |h define|s the wi|
|00001010| 6e 64 6f 77 20 66 6f 72 | 20 74 68 69 73 0d 09 09 |ndow for| this...|
|00001020| 09 09 09 09 09 09 09 09 | 09 09 09 09 61 70 70 6c |........|....appl|
|00001030| 69 63 61 74 69 6f 6e 27 | 73 20 64 6f 63 75 6d 65 |ication'|s docume|
|00001040| 6e 74 73 7d 0d 09 6b 53 | 74 61 67 67 65 72 41 6d |nts}..kS|taggerAm|
|00001050| 6f 75 6e 74 09 09 3d 20 | 33 30 3b 0d 09 6b 50 49 |ount..= |30;..kPI|
|00001060| 43 54 48 65 61 64 65 72 | 53 69 7a 65 20 09 09 3d |CTHeader|Size ..=|
|00001070| 20 35 31 32 3b 09 09 7b | 20 35 31 32 20 62 79 74 | 512;..{| 512 byt|
|00001080| 65 73 20 6f 66 66 20 74 | 68 65 20 66 69 6c 65 20 |es off t|he file |
|00001090| 61 72 65 20 75 73 65 64 | 20 66 6f 72 20 6f 75 72 |are used| for our|
|000010a0| 20 69 6e 66 6f 20 61 6e | 64 20 70 72 69 6e 74 20 | info an|d print |
|000010b0| 69 6e 66 6f 2e 20 7d 0d | 09 6b 53 65 6c 50 61 74 |info. }.|.kSelPat|
|000010c0| 74 65 72 6e 09 09 09 09 | 3d 20 31 32 38 3b 09 09 |tern....|= 128;..|
|000010d0| 7b 20 70 61 74 74 65 72 | 6e 20 72 65 73 6f 75 72 |{ patter|n resour|
|000010e0| 63 65 20 49 64 2e 20 7d | 0d 09 6b 4e 65 77 46 72 |ce Id. }|..kNewFr|
|000010f0| 61 63 74 61 6c 20 09 09 | 09 3d 20 31 30 30 30 3b |actal ..|.= 1000;|
|00001100| 09 7b 20 69 74 65 6d 20 | 49 64 20 66 6f 72 20 4e |.{ item |Id for N|
|00001110| 65 77 20 46 72 61 63 74 | 61 6c 20 6d 65 6e 75 20 |ew Fract|al menu |
|00001120| 6f 70 74 69 6f 6e 2e 20 | 7d 0d 09 6b 52 6f 74 61 |option. |}..kRota|
|00001130| 74 65 43 6f 6c 6f 72 73 | 20 09 09 09 3d 20 31 30 |teColors| ...= 10|
|00001140| 30 31 3b 09 7b 20 69 74 | 65 6d 20 49 64 20 66 6f |01;.{ it|em Id fo|
|00001150| 72 20 52 6f 74 61 74 65 | 20 43 6f 6c 6f 72 73 20 |r Rotate| Colors |
|00001160| 6d 65 6e 75 20 6f 70 74 | 69 6f 6e 20 69 6e 20 46 |menu opt|ion in F|
|00001170| 72 61 63 74 61 6c 20 6d | 65 6e 75 2e 20 7d 0d 09 |ractal m|enu. }..|
|00001180| 6b 43 6c 75 74 20 09 09 | 09 09 09 09 3d 20 35 30 |kClut ..|....= 50|
|00001190| 31 3b 09 09 7b 20 52 65 | 73 20 49 64 20 66 6f 72 |1;..{ Re|s Id for|
|000011a0| 20 74 68 65 20 63 6c 75 | 74 20 72 65 73 6f 75 72 | the clu|t resour|
|000011b0| 63 65 20 74 68 61 74 20 | 77 65 20 75 73 65 20 66 |ce that |we use f|
|000011c0| 6f 72 20 6f 66 66 73 63 | 72 65 65 6e 2e 20 7d 0d |or offsc|reen. }.|
|000011d0| 09 6b 4e 75 6d 43 6f 6c | 6f 72 73 09 09 09 09 3d |.kNumCol|ors....=|
|000011e0| 20 31 39 35 3b 09 09 7b | 20 6e 75 6d 62 65 72 20 | 195;..{| number |
|000011f0| 6f 66 20 63 6f 6c 6f 72 | 73 20 77 65 20 61 6e 69 |of color|s we ani|
|00001200| 6d 61 74 65 2c 20 61 6e | 64 20 75 73 65 20 69 6e |mate, an|d use in|
|00001210| 20 63 61 6c 63 75 6c 61 | 74 69 6f 6e 2e 20 7d 0d | calcula|tion. }.|
|00001220| 09 6b 4e 75 6d 50 61 6c | 65 74 74 65 09 09 09 3d |.kNumPal|ette...=|
|00001230| 20 31 34 3b 09 09 7b 20 | 31 34 20 65 78 74 72 61 | 14;..{ |14 extra|
|00001240| 20 63 6f 6c 6f 72 73 20 | 69 6e 20 73 79 73 74 65 | colors |in syste|
|00001250| 6d 20 70 61 6c 65 74 74 | 65 20 61 74 20 65 6e 64 |m palett|e at end|
|00001260| 20 6f 66 20 63 6f 6c 6f | 72 73 2e 20 7d 0d 09 6b | of colo|rs. }..k|
|00001270| 57 72 6f 6e 67 4d 61 63 | 68 69 6e 65 09 09 09 3d |WrongMac|hine...=|
|00001280| 20 31 30 30 30 3b 09 7b | 20 65 72 72 6f 72 20 63 | 1000;.{| error c|
|00001290| 6f 64 65 20 69 66 20 77 | 65 20 63 61 6e 6e 6f 74 |ode if w|e cannot|
|000012a0| 20 72 75 6e 2c 20 66 72 | 6f 6d 20 46 6f 72 63 65 | run, fr|om Force|
|000012b0| 45 6e 76 69 72 6f 6e 73 | 2e 20 7d 0d 09 6b 42 61 |Environs|. }..kBa|
|000012c0| 64 52 6f 74 61 74 65 09 | 09 09 09 3d 20 24 30 34 |dRotate.|...= $04|
|000012d0| 34 43 30 30 30 32 3b 09 | 7b 20 6d 65 73 73 61 67 |4C0002;.|{ messag|
|000012e0| 65 20 63 6f 64 65 20 74 | 6f 20 75 73 65 20 53 54 |e code t|o use ST|
|000012f0| 52 23 20 31 31 30 30 2c | 20 73 74 72 69 6e 67 20 |R# 1100,| string |
|00001300| 32 2e 20 7d 0d 09 0d 09 | 65 6e 76 44 6f 6e 74 43 |2. }....|envDontC|
|00001310| 61 72 65 20 09 09 09 3d | 20 30 3b 09 09 09 7b 20 |are ...=| 0;...{ |
|00001320| 64 6f 6e 27 74 20 63 61 | 72 65 20 69 73 20 61 6c |don't ca|re is al|
|00001330| 77 61 79 73 20 30 2c 20 | 66 6f 72 20 46 6f 72 63 |ways 0, |for Forc|
|00001340| 65 45 6e 76 69 72 6f 6e | 73 2e 20 7d 0d 0d 54 59 |eEnviron|s. }..TY|
|00001350| 50 45 0d 09 7b 20 54 68 | 65 20 68 65 61 64 65 72 |PE..{ Th|e header|
|00001360| 20 72 65 63 6f 72 64 20 | 66 6f 72 20 65 61 63 68 | record |for each|
|00001370| 20 6f 66 20 74 68 65 20 | 66 69 6c 65 73 20 73 61 | of the |files sa|
|00001380| 76 65 64 20 62 79 20 46 | 72 61 63 41 70 70 2e 20 |ved by F|racApp. |
|00001390| 20 54 68 69 73 20 68 65 | 61 64 65 72 20 69 6e 63 | This he|ader inc|
|000013a0| 6c 75 64 65 73 20 74 68 | 65 0d 09 09 70 65 72 74 |ludes th|e...pert|
|000013b0| 69 6e 65 6e 74 20 64 61 | 74 61 20 74 68 61 74 20 |inent da|ta that |
|000013c0| 61 6c 6c 6f 77 73 20 61 | 20 66 72 61 63 74 61 6c |allows a| fractal|
|000013d0| 20 74 6f 20 62 65 20 72 | 65 73 74 61 72 74 65 64 | to be r|estarted|
|000013e0| 2c 20 61 73 20 77 65 6c | 6c 20 61 73 20 64 69 73 |, as wel|l as dis|
|000013f0| 70 6c 61 79 65 64 0d 09 | 09 6f 6e 20 74 68 65 20 |played..|.on the |
|00001400| 73 63 72 65 65 6e 2e 20 | 20 54 68 65 20 70 72 69 |screen. | The pri|
|00001410| 6e 74 20 72 65 63 6f 72 | 64 20 66 6f 6c 6c 6f 77 |nt recor|d follow|
|00001420| 73 20 74 68 69 73 20 69 | 6e 66 6f 20 69 6e 20 74 |s this i|nfo in t|
|00001430| 68 65 20 66 69 72 73 74 | 20 35 31 32 20 62 79 74 |he first| 512 byt|
|00001440| 65 73 20 6f 66 20 61 20 | 66 69 6c 65 2c 0d 09 09 |es of a |file,...|
|00001450| 62 75 74 20 74 68 61 74 | 20 69 6e 66 6f 20 69 73 |but that| info is|
|00001460| 20 72 65 61 64 20 62 79 | 20 74 68 65 20 73 74 61 | read by| the sta|
|00001470| 6e 64 61 72 64 20 44 6f | 52 65 61 64 2f 44 6f 57 |ndard Do|Read/DoW|
|00001480| 72 69 74 65 20 6d 65 74 | 68 6f 64 73 2e 20 20 53 |rite met|hods. S|
|00001490| 6f 6d 65 20 6f 66 20 74 | 68 65 20 66 69 65 6c 64 |ome of t|he field|
|000014a0| 73 0d 09 09 61 72 65 20 | 4c 6f 6e 67 49 6e 74 73 |s...are |LongInts|
|000014b0| 20 74 6f 20 61 76 6f 69 | 64 20 72 6f 75 6e 64 69 | to avoi|d roundi|
|000014c0| 6e 67 20 65 72 72 6f 72 | 73 20 64 75 72 69 6e 67 |ng error|s during|
|000014d0| 20 63 61 6c 63 75 6c 61 | 74 69 6f 6e 73 2e 20 7d | calcula|tions. }|
|000014e0| 0d 09 46 72 61 63 52 65 | 63 6f 72 64 20 20 3d 20 |..FracRe|cord = |
|000014f0| 52 45 43 4f 52 44 0d 09 | 09 66 54 79 70 65 3a 09 |RECORD..|.fType:.|
|00001500| 09 4f 53 54 79 70 65 3b | 09 09 09 7b 20 34 20 20 |.OSType;|...{ 4 |
|00001510| 73 65 74 20 61 73 20 27 | 41 72 66 20 27 20 66 6f |set as '|Arf ' fo|
|00001520| 72 20 74 68 65 73 65 20 | 64 6f 63 75 6d 65 6e 74 |r these |document|
|00001530| 73 2e 20 7d 0d 09 09 68 | 64 72 49 64 3a 09 09 49 |s. }...h|drId:..I|
|00001540| 6e 74 65 67 65 72 3b 09 | 09 09 7b 20 32 20 20 61 |nteger;.|..{ 2 a|
|00001550| 73 20 27 46 41 27 20 46 | 72 61 63 41 70 70 20 68 |s 'FA' F|racApp h|
|00001560| 65 61 64 65 72 20 49 44 | 2e 20 7d 0d 09 09 76 65 |eader ID|. }...ve|
|00001570| 72 73 69 6f 6e 3a 09 49 | 6e 74 65 67 65 72 3b 20 |rsion:.I|nteger; |
|00001580| 20 09 09 09 7b 20 32 20 | 20 66 69 6c 65 20 76 65 | ...{ 2 | file ve|
|00001590| 72 73 69 6f 6e 20 64 65 | 63 69 64 65 73 20 74 79 |rsion de|cides ty|
|000015a0| 70 65 20 6f 66 20 66 69 | 6c 65 2e 20 7d 0d 09 09 |pe of fi|le. }...|
|000015b0| 64 6f 6e 65 3a 09 09 42 | 6f 6f 6c 65 61 6e 3b 09 |done:..B|oolean;.|
|000015c0| 09 09 7b 20 32 20 20 69 | 66 20 74 68 65 20 66 72 |..{ 2 i|f the fr|
|000015d0| 61 63 74 61 6c 20 69 73 | 20 66 69 6e 69 73 68 65 |actal is| finishe|
|000015e0| 64 20 6f 72 20 6e 6f 74 | 2e 20 7d 0d 09 09 72 65 |d or not|. }...re|
|000015f0| 61 6c 4d 69 6e 3a 09 45 | 78 74 65 6e 64 65 64 3b |alMin:.E|xtended;|
|00001600| 09 09 09 7b 20 31 32 20 | 20 6d 69 6e 69 6d 75 6d |...{ 12 | minimum|
|00001610| 20 76 61 6c 75 65 20 6f | 66 20 66 72 61 63 74 61 | value o|f fracta|
|00001620| 6c 20 6f 6e 20 72 65 61 | 6c 2f 70 20 61 78 69 73 |l on rea|l/p axis|
|00001630| 2e 20 7d 0d 09 09 72 65 | 61 6c 4d 61 78 3a 09 45 |. }...re|alMax:.E|
|00001640| 78 74 65 6e 64 65 64 3b | 09 09 09 7b 20 31 32 20 |xtended;|...{ 12 |
|00001650| 20 6d 61 78 69 6d 75 6d | 20 76 61 6c 75 65 20 6f | maximum| value o|
|00001660| 66 20 66 72 61 63 74 61 | 6c 20 6f 6e 20 72 65 61 |f fracta|l on rea|
|00001670| 6c 2f 70 20 61 78 69 73 | 2e 20 7d 0d 09 09 69 6d |l/p axis|. }...im|
|00001680| 61 67 4d 69 6e 3a 09 45 | 78 74 65 6e 64 65 64 3b |agMin:.E|xtended;|
|00001690| 09 09 09 7b 20 31 32 20 | 20 6d 69 6e 69 6d 75 6d |...{ 12 | minimum|
|000016a0| 20 6f 6e 20 69 6d 61 67 | 69 6e 61 72 79 2f 71 20 | on imag|inary/q |
|000016b0| 61 78 69 73 2e 20 7d 0d | 09 09 69 6d 61 67 4d 61 |axis. }.|..imagMa|
|000016c0| 78 3a 09 45 78 74 65 6e | 64 65 64 3b 09 09 09 7b |x:.Exten|ded;...{|
|000016d0| 20 31 32 20 20 6d 61 78 | 69 6d 75 6d 20 6f 6e 20 | 12 max|imum on |
|000016e0| 69 6d 61 67 69 6e 61 72 | 79 2f 71 20 61 78 69 73 |imaginar|y/q axis|
|000016f0| 2e 20 7d 0d 09 09 64 65 | 6c 74 61 50 3a 09 09 45 |. }...de|ltaP:..E|
|00001700| 78 74 65 6e 64 65 64 3b | 09 09 09 7b 20 31 32 20 |xtended;|...{ 12 |
|00001710| 20 68 6f 72 69 7a 6f 6e | 74 61 6c 20 73 74 65 70 | horizon|tal step|
|00001720| 20 73 69 7a 65 20 69 6e | 20 66 72 61 63 74 61 6c | size in| fractal|
|00001730| 20 73 70 61 63 65 2e 20 | 7d 0d 09 09 64 65 6c 74 | space. |}...delt|
|00001740| 61 51 3a 09 09 45 78 74 | 65 6e 64 65 64 3b 09 09 |aQ:..Ext|ended;..|
|00001750| 09 7b 20 31 32 20 20 76 | 65 72 74 69 63 61 6c 20 |.{ 12 v|ertical |
|00001760| 73 74 65 70 20 73 69 7a | 65 20 69 6e 20 66 72 61 |step siz|e in fra|
|00001770| 63 74 61 6c 20 73 70 61 | 63 65 2e 20 7d 0d 09 09 |ctal spa|ce. }...|
|00001780| 70 6c 6f 74 57 69 64 74 | 68 3a 20 4c 6f 6e 67 49 |plotWidt|h: LongI|
|00001790| 6e 74 3b 09 09 09 7b 20 | 34 20 20 77 69 64 74 68 |nt;...{ |4 width|
|000017a0| 20 6f 66 20 66 72 61 63 | 74 61 6c 20 61 72 65 61 | of frac|tal area|
|000017b0| 20 69 6e 20 70 69 78 65 | 6c 73 2e 20 7d 0d 09 09 | in pixe|ls. }...|
|000017c0| 70 6c 6f 74 48 65 69 67 | 68 74 3a 20 4c 6f 6e 67 |plotHeig|ht: Long|
|000017d0| 49 6e 74 3b 09 09 09 7b | 20 34 20 20 68 65 69 67 |Int;...{| 4 heig|
|000017e0| 68 74 20 6f 66 20 66 72 | 61 63 74 61 6c 20 61 72 |ht of fr|actal ar|
|000017f0| 65 61 20 69 6e 20 70 69 | 78 65 6c 73 2e 20 7d 0d |ea in pi|xels. }.|
|00001800| 09 09 63 61 6c 63 52 65 | 63 74 3a 09 52 65 63 74 |..calcRe|ct:.Rect|
|00001810| 3b 09 09 09 09 7b 20 38 | 20 20 72 65 63 74 61 6e |;....{ 8| rectan|
|00001820| 67 6c 65 20 73 75 72 72 | 6f 75 6e 64 69 6e 67 20 |gle surr|ounding |
|00001830| 74 68 65 20 77 69 6e 64 | 6f 77 20 69 74 20 77 61 |the wind|ow it wa|
|00001840| 73 20 62 75 69 6c 74 20 | 66 6f 72 2e 20 7d 0d 09 |s built |for. }..|
|00001850| 09 63 75 72 52 6f 77 3a | 09 4c 6f 6e 67 49 6e 74 |.curRow:|.LongInt|
|00001860| 3b 09 09 09 7b 20 34 20 | 20 63 6f 75 6e 74 65 72 |;...{ 4 | counter|
|00001870| 20 66 6f 72 20 63 75 72 | 72 65 6e 74 20 70 69 78 | for cur|rent pix|
|00001880| 65 6c 20 70 6f 73 69 74 | 69 6f 6e 20 74 6f 20 62 |el posit|ion to b|
|00001890| 65 20 64 6f 6e 65 2e 20 | 20 56 65 72 74 69 63 61 |e done. | Vertica|
|000018a0| 6c 2e 20 7d 0d 09 09 63 | 75 72 43 6f 6c 3a 09 09 |l. }...c|urCol:..|
|000018b0| 4c 6f 6e 67 49 6e 74 3b | 09 09 09 7b 20 34 20 20 |LongInt;|...{ 4 |
|000018c0| 63 6f 75 6e 74 65 72 20 | 66 6f 72 20 63 75 72 72 |counter |for curr|
|000018d0| 65 6e 74 20 70 69 78 65 | 6c 2e 20 20 48 6f 72 69 |ent pixe|l. Hori|
|000018e0| 7a 6f 6e 74 61 6c 2e 20 | 7d 0d 09 09 65 6c 61 70 |zontal. |}...elap|
|000018f0| 73 65 64 54 69 6d 65 3a | 20 4c 6f 6e 67 49 6e 74 |sedTime:| LongInt|
|00001900| 3b 09 09 7b 20 34 20 20 | 61 6d 6f 75 6e 74 20 6f |;..{ 4 |amount o|
|00001910| 66 20 74 69 6d 65 20 74 | 6f 20 64 6f 20 74 68 69 |f time t|o do thi|
|00001920| 73 20 66 72 61 63 74 61 | 6c 20 69 6e 20 73 65 63 |s fracta|l in sec|
|00001930| 6f 6e 64 73 2e 20 7d 0d | 09 45 4e 44 3b 20 20 7b |onds. }.|.END; {|
|00001940| 20 46 72 61 63 52 65 63 | 6f 72 64 2e 20 7d 0d 0d | FracRec|ord. }..|
|00001950| 0d 0d 7b 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |..{-----|--------|
|00001960| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001970| 2d 2d 20 20 41 70 70 6c | 69 63 61 74 69 6f 6e 20 |-- Appl|ication |
|00001980| 20 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d | -------|--------|
|00001990| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000019a0| 7d 0d 0d 09 54 46 72 61 | 63 41 70 70 41 70 70 6c |}...TFra|cAppAppl|
|000019b0| 69 63 61 74 69 6f 6e 20 | 3d 20 4f 42 4a 45 43 54 |ication |= OBJECT|
|000019c0| 28 54 41 70 70 6c 69 63 | 61 74 69 6f 6e 29 0d 0d |(TApplic|ation)..|
|000019d0| 09 09 0d 09 09 50 52 4f | 43 45 44 55 52 45 20 54 |.....PRO|CEDURE T|
|000019e0| 46 72 61 63 41 70 70 41 | 70 70 6c 69 63 61 74 69 |FracAppA|pplicati|
|000019f0| 6f 6e 2e 49 46 72 61 63 | 41 70 70 41 70 70 6c 69 |on.IFrac|AppAppli|
|00001a00| 63 61 74 69 6f 6e 20 28 | 69 74 73 4d 61 69 6e 46 |cation (|itsMainF|
|00001a10| 69 6c 65 54 79 70 65 3a | 20 4f 53 54 79 70 65 29 |ileType:| OSType)|
|00001a20| 3b 0d 09 09 09 7b 49 6e | 69 74 69 61 6c 69 7a 65 |;....{In|itialize|
|00001a30| 73 20 74 68 65 20 61 70 | 70 6c 69 63 61 74 69 6f |s the ap|plicatio|
|00001a40| 6e 20 61 6e 64 20 67 6c | 6f 62 61 6c 73 2e 7d 0d |n and gl|obals.}.|
|00001a50| 0d 09 09 46 55 4e 43 54 | 49 4f 4e 20 20 54 46 72 |...FUNCT|ION TFr|
|00001a60| 61 63 41 70 70 41 70 70 | 6c 69 63 61 74 69 6f 6e |acAppApp|lication|
|00001a70| 2e 44 6f 4d 61 6b 65 44 | 6f 63 75 6d 65 6e 74 28 |.DoMakeD|ocument(|
|00001a80| 0d 09 09 09 09 69 74 73 | 43 6d 64 4e 75 6d 62 65 |.....its|CmdNumbe|
|00001a90| 72 3a 20 43 6d 64 4e 75 | 6d 62 65 72 29 3a 20 54 |r: CmdNu|mber): T|
|00001aa0| 44 6f 63 75 6d 65 6e 74 | 3b 20 4f 56 45 52 52 49 |Document|; OVERRI|
|00001ab0| 44 45 3b 0d 09 09 09 7b | 4c 61 75 6e 63 68 65 73 |DE;....{|Launches|
|00001ac0| 20 61 20 54 46 72 61 63 | 41 70 70 44 6f 63 75 6d | a TFrac|AppDocum|
|00001ad0| 65 6e 74 3b 20 63 61 6c | 6c 65 64 20 77 68 65 6e |ent; cal|led when|
|00001ae0| 20 61 70 70 6c 69 63 61 | 74 69 6f 6e 27 73 20 69 | applica|tion's i|
|00001af0| 63 6f 6e 20 69 73 0d 09 | 09 09 09 6f 70 65 6e 65 |con is..|...opene|
|00001b00| 64 2c 20 61 6e 64 20 77 | 68 65 6e 20 4e 65 77 20 |d, and w|hen New |
|00001b10| 6f 72 20 4f 70 65 6e 20 | 69 73 20 72 65 71 75 65 |or Open |is reque|
|00001b20| 73 74 65 64 20 62 79 20 | 74 68 65 20 75 73 65 72 |sted by |the user|
|00001b30| 2e 0d 09 09 09 09 45 76 | 65 72 79 20 61 70 70 6c |......Ev|ery appl|
|00001b40| 69 63 61 74 69 6f 6e 20 | 77 68 69 63 68 20 75 73 |ication |which us|
|00001b50| 65 73 20 44 6f 63 75 6d | 65 6e 74 73 20 4d 55 53 |es Docum|ents MUS|
|00001b60| 54 20 6f 76 65 72 72 69 | 64 65 20 74 68 69 73 0d |T overri|de this.|
|00001b70| 09 09 09 09 6d 65 74 68 | 6f 64 7d 0d 09 09 09 09 |....meth|od}.....|
|00001b80| 0d 09 09 50 52 4f 43 45 | 44 55 52 45 20 20 54 46 |...PROCE|DURE TF|
|00001b90| 72 61 63 41 70 70 41 70 | 70 6c 69 63 61 74 69 6f |racAppAp|plicatio|
|00001ba0| 6e 2e 44 6f 49 64 6c 65 | 20 28 50 68 61 73 65 3a |n.DoIdle| (Phase:|
|00001bb0| 20 49 64 6c 65 50 68 61 | 73 65 29 3b 20 4f 56 45 | IdlePha|se); OVE|
|00001bc0| 52 52 49 44 45 3b 0d 09 | 09 09 7b 20 50 65 72 66 |RRIDE;..|..{ Perf|
|00001bd0| 6f 72 6d 73 20 49 64 6c | 65 20 74 69 6d 65 20 70 |orms Idl|e time p|
|00001be0| 72 6f 63 65 73 73 69 6e | 67 20 66 6f 72 20 74 68 |rocessin|g for th|
|00001bf0| 65 20 61 70 70 6c 69 63 | 61 74 69 6f 6e 2e 20 20 |e applic|ation. |
|00001c00| 54 68 69 73 20 77 69 6c | 6c 20 64 6f 20 74 68 65 |This wil|l do the|
|00001c10| 0d 09 09 09 09 66 72 61 | 63 74 61 6c 20 63 61 6c |.....fra|ctal cal|
|00001c20| 63 75 6c 61 74 69 6f 6e | 20 64 75 72 69 6e 67 20 |culation| during |
|00001c30| 74 68 65 20 69 64 6c 65 | 20 74 69 6d 65 73 2e 20 |the idle| times. |
|00001c40| 20 49 74 20 77 69 6c 6c | 20 61 6c 6c 6f 77 20 65 | It will| allow e|
|00001c50| 61 63 68 20 6f 70 65 6e | 0d 09 09 09 09 76 69 65 |ach open|.....vie|
|00001c60| 77 20 61 20 63 68 61 6e | 63 65 20 74 6f 20 63 61 |w a chan|ce to ca|
|00001c70| 6c 63 75 6c 61 74 65 2e | 20 7d 0d 0d 09 09 50 52 |lculate.| }....PR|
|00001c80| 4f 43 45 44 55 52 45 20 | 54 46 72 61 63 41 70 70 |OCEDURE |TFracApp|
|00001c90| 41 70 70 6c 69 63 61 74 | 69 6f 6e 2e 44 6f 53 65 |Applicat|ion.DoSe|
|00001ca0| 74 75 70 4d 65 6e 75 73 | 3b 20 20 4f 56 45 52 52 |tupMenus|; OVERR|
|00001cb0| 49 44 45 3b 0d 09 09 09 | 7b 20 53 65 74 20 75 70 |IDE;....|{ Set up|
|00001cc0| 20 74 68 65 20 6d 65 6e | 75 73 20 63 68 6f 69 63 | the men|us choic|
|00001cd0| 65 20 69 6e 20 46 72 61 | 63 74 61 6c 20 4d 65 6e |e in Fra|ctal Men|
|00001ce0| 75 20 74 6f 20 68 61 6e | 64 6c 65 20 52 6f 74 61 |u to han|dle Rota|
|00001cf0| 74 65 20 43 6f 6c 6f 72 | 73 2e 20 7d 0d 0d 09 09 |te Color|s. }....|
|00001d00| 46 55 4e 43 54 49 4f 4e | 20 54 46 72 61 63 41 70 |FUNCTION| TFracAp|
|00001d10| 70 41 70 70 6c 69 63 61 | 74 69 6f 6e 2e 44 6f 4d |pApplica|tion.DoM|
|00001d20| 65 6e 75 43 6f 6d 6d 61 | 6e 64 28 0d 09 09 09 09 |enuComma|nd(.....|
|00001d30| 09 09 09 09 09 09 09 09 | 61 43 6d 64 4e 75 6d 62 |........|aCmdNumb|
|00001d40| 65 72 3a 20 43 6d 64 4e | 75 6d 62 65 72 29 3a 20 |er: CmdN|umber): |
|00001d50| 54 43 6f 6d 6d 61 6e 64 | 3b 20 20 4f 56 45 52 52 |TCommand|; OVERR|
|00001d60| 49 44 45 3b 0d 09 09 09 | 7b 20 48 61 6e 64 6c 65 |IDE;....|{ Handle|
|00001d70| 20 74 68 65 20 6d 65 6e | 75 20 63 68 6f 69 63 65 | the men|u choice|
|00001d80| 20 6f 75 74 20 6f 66 20 | 74 68 65 20 46 72 61 63 | out of |the Frac|
|00001d90| 74 61 6c 20 4d 65 6e 75 | 20 66 6f 72 20 52 6f 74 |tal Menu| for Rot|
|00001da0| 61 74 65 20 43 6f 6c 6f | 72 73 2e 20 7d 0d 09 09 |ate Colo|rs. }...|
|00001db0| 09 0d 09 09 50 52 4f 43 | 45 44 55 52 45 20 54 46 |....PROC|EDURE TF|
|00001dc0| 72 61 63 41 70 70 41 70 | 70 6c 69 63 61 74 69 6f |racAppAp|plicatio|
|00001dd0| 6e 2e 52 65 67 61 69 6e | 43 6f 6e 74 72 6f 6c 28 |n.Regain|Control(|
|00001de0| 63 68 65 63 6b 43 6c 69 | 70 62 6f 61 72 64 3a 20 |checkCli|pboard: |
|00001df0| 42 4f 4f 4c 45 41 4e 29 | 3b 20 0d 09 09 09 09 4f |BOOLEAN)|; .....O|
|00001e00| 56 45 52 52 49 44 45 3b | 0d 09 09 09 7b 20 57 68 |VERRIDE;|....{ Wh|
|00001e10| 65 6e 20 77 65 20 61 72 | 65 20 73 77 69 74 63 68 |en we ar|e switch|
|00001e20| 65 64 20 69 6e 20 77 65 | 20 6e 65 65 64 20 74 6f |ed in we| need to|
|00001e30| 20 72 65 73 65 74 20 74 | 68 65 20 63 6f 6c 6f 72 | reset t|he color|
|00001e40| 20 74 61 62 6c 65 2e 20 | 7d 0d 09 09 09 0d 09 09 | table. |}.......|
|00001e50| 50 52 4f 43 45 44 55 52 | 45 20 54 46 72 61 63 41 |PROCEDUR|E TFracA|
|00001e60| 70 70 41 70 70 6c 69 63 | 61 74 69 6f 6e 2e 41 62 |ppApplic|ation.Ab|
|00001e70| 6f 75 74 54 6f 4c 6f 73 | 65 43 6f 6e 74 72 6f 6c |outToLos|eControl|
|00001e80| 28 63 6f 6e 76 65 72 74 | 43 6c 69 70 62 6f 61 72 |(convert|Clipboar|
|00001e90| 64 3a 20 42 4f 4f 4c 45 | 41 4e 29 3b 0d 09 09 09 |d: BOOLE|AN);....|
|00001ea0| 09 4f 56 45 52 52 49 44 | 45 3b 0d 09 09 09 7b 20 |.OVERRID|E;....{ |
|00001eb0| 57 68 65 6e 20 77 65 20 | 61 72 65 20 73 77 69 74 |When we |are swit|
|00001ec0| 63 68 65 64 20 6f 75 74 | 20 77 65 20 6e 65 65 64 |ched out| we need|
|00001ed0| 20 74 6f 20 72 65 73 74 | 6f 72 65 20 74 68 65 20 | to rest|ore the |
|00001ee0| 63 6f 6c 6f 72 20 74 61 | 62 6c 65 20 74 6f 20 62 |color ta|ble to b|
|00001ef0| 65 20 70 6f 6c 69 74 65 | 2e 20 7d 0d 09 09 09 0d |e polite|. }.....|
|00001f00| 09 45 4e 44 3b 09 7b 20 | 54 46 72 61 63 41 70 70 |.END;.{ |TFracApp|
|00001f10| 41 70 70 6c 69 63 61 74 | 69 6f 6e 20 7d 0d 0d 0d |Applicat|ion }...|
|00001f20| 7b 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |{-------|--------|
|00001f30| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001f40| 20 20 44 6f 63 75 6d 65 | 6e 74 20 20 2d 2d 2d 2d | Docume|nt ----|
|00001f50| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001f60| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 7d 0d 0d 09 54 |--------|---}...T|
|00001f70| 46 72 61 63 41 70 70 44 | 6f 63 75 6d 65 6e 74 20 |FracAppD|ocument |
|00001f80| 3d 20 4f 42 4a 45 43 54 | 28 54 44 6f 63 75 6d 65 |= OBJECT|(TDocume|
|00001f90| 6e 74 29 0d 0d 09 09 7b | 20 4e 6f 77 20 74 68 65 |nt)....{| Now the|
|00001fa0| 20 66 69 65 6c 64 73 20 | 74 68 61 74 20 61 72 65 | fields |that are|
|00001fb0| 20 73 70 65 63 69 61 6c | 20 74 6f 20 74 68 65 20 | special| to the |
|00001fc0| 66 72 61 63 74 61 6c 20 | 69 74 73 65 6c 66 2e 20 |fractal |itself. |
|00001fd0| 20 54 68 65 73 65 20 61 | 72 65 20 74 68 65 0d 09 | These a|re the..|
|00001fe0| 09 09 76 61 72 69 61 62 | 6c 65 73 20 74 68 61 74 |..variab|les that|
|00001ff0| 20 6d 61 6b 65 20 75 70 | 20 74 68 65 20 64 69 73 | make up| the dis|
|00002000| 70 6c 61 79 20 73 74 61 | 74 65 20 61 6e 64 20 74 |play sta|te and t|
|00002010| 68 65 20 64 65 66 69 6e | 69 74 69 6f 6e 20 6f 66 |he defin|ition of|
|00002020| 20 74 68 65 0d 09 09 09 | 66 72 61 63 74 61 6c 20 | the....|fractal |
|00002030| 69 74 73 65 6c 66 2e 20 | 20 54 68 65 79 20 61 72 |itself. | They ar|
|00002040| 65 20 61 73 73 6f 63 69 | 61 74 65 64 20 77 69 74 |e associ|ated wit|
|00002050| 68 20 74 68 65 20 64 6f | 63 75 6d 65 6e 74 20 73 |h the do|cument s|
|00002060| 6f 20 74 68 65 79 20 63 | 61 6e 0d 09 09 09 62 65 |o they c|an....be|
|00002070| 20 73 74 6f 72 65 64 20 | 69 6e 20 61 20 66 69 6c | stored |in a fil|
|00002080| 65 2c 20 61 6e 64 20 72 | 65 61 64 20 62 61 63 6b |e, and r|ead back|
|00002090| 20 69 6e 2e 20 20 45 73 | 73 65 6e 74 69 61 6c 6c | in. Es|sentiall|
|000020a0| 79 20 61 20 67 6c 6f 62 | 61 6c 20 73 74 61 74 65 |y a glob|al state|
|000020b0| 20 66 6f 72 0d 09 09 09 | 65 61 63 68 20 66 72 61 | for....|each fra|
|000020c0| 63 74 61 6c 20 64 6f 63 | 75 6d 65 6e 74 2e 20 7d |ctal doc|ument. }|
|000020d0| 0d 0d 09 09 66 46 72 61 | 63 48 65 61 64 65 72 3a |....fFra|cHeader:|
|000020e0| 09 09 09 09 09 09 09 46 | 72 61 63 52 65 63 6f 72 |.......F|racRecor|
|000020f0| 64 3b 09 09 09 7b 20 67 | 6c 6f 62 61 6c 20 73 74 |d;...{ g|lobal st|
|00002100| 61 74 65 20 6f 6e 20 66 | 72 61 63 74 61 6c 2e 20 |ate on f|ractal. |
|00002110| 7d 0d 09 09 66 53 74 61 | 72 74 54 69 6d 65 3a 09 |}...fSta|rtTime:.|
|00002120| 09 09 09 09 09 09 4c 6f | 6e 67 49 6e 74 3b 09 09 |......Lo|ngInt;..|
|00002130| 09 09 7b 20 73 74 61 72 | 74 69 6e 67 20 74 69 6d |..{ star|ting tim|
|00002140| 65 20 6f 66 20 63 61 6c | 63 75 6c 61 74 69 6f 6e |e of cal|culation|
|00002150| 73 2e 20 7d 0d 09 09 66 | 42 69 67 42 75 66 66 3a |s. }...f|BigBuff:|
|00002160| 09 09 09 09 09 09 09 09 | 50 74 72 3b 09 09 09 09 |........|Ptr;....|
|00002170| 09 09 7b 20 70 6f 69 6e | 74 65 72 20 74 6f 20 6f |..{ poin|ter to o|
|00002180| 66 66 73 63 72 65 65 6e | 20 64 61 74 61 20 7d 0d |ffscreen| data }.|
|00002190| 09 09 66 44 72 61 77 69 | 6e 67 44 65 76 69 63 65 |..fDrawi|ngDevice|
|000021a0| 3a 20 09 09 09 09 09 47 | 44 48 61 6e 64 6c 65 3b |: .....G|DHandle;|
|000021b0| 09 09 09 09 7b 20 68 61 | 6e 64 6c 65 20 74 6f 20 |....{ ha|ndle to |
|000021c0| 6f 75 72 20 6f 66 66 73 | 63 72 65 65 6e 20 67 44 |our offs|creen gD|
|000021d0| 65 76 69 63 65 2e 20 7d | 0d 09 09 66 44 72 61 77 |evice. }|...fDraw|
|000021e0| 69 6e 67 50 6f 72 74 3a | 09 09 09 09 09 09 43 47 |ingPort:|......CG|
|000021f0| 72 61 66 50 74 72 3b 09 | 09 09 09 7b 20 70 6f 69 |rafPtr;.|...{ poi|
|00002200| 6e 74 65 72 20 74 6f 20 | 64 72 61 77 69 6e 67 20 |nter to |drawing |
|00002210| 62 75 66 66 65 72 2e 20 | 7d 0d 0d 09 09 66 46 72 |buffer. |}....fFr|
|00002220| 61 63 41 70 70 56 69 65 | 77 3a 09 09 09 09 09 09 |acAppVie|w:......|
|00002230| 54 46 72 61 63 41 70 70 | 56 69 65 77 3b 0d 09 09 |TFracApp|View;...|
|00002240| 09 7b 45 76 65 72 79 20 | 64 6f 63 75 6d 65 6e 74 |.{Every |document|
|00002250| 20 6f 62 6a 65 63 74 20 | 6d 75 73 74 20 70 72 65 | object |must pre|
|00002260| 73 65 72 76 65 20 72 65 | 66 65 72 65 6e 63 65 73 |serve re|ferences|
|00002270| 20 74 6f 20 61 6c 6c 20 | 74 68 65 20 76 69 65 77 | to all |the view|
|00002280| 73 20 69 74 0d 09 09 09 | 09 63 72 65 61 74 65 73 |s it....|.creates|
|00002290| 20 61 73 20 66 69 65 6c | 64 73 20 6f 66 20 74 68 | as fiel|ds of th|
|000022a0| 65 20 64 6f 63 75 6d 65 | 6e 74 20 6f 62 6a 65 63 |e docume|nt objec|
|000022b0| 74 2c 20 73 69 6e 63 65 | 20 44 6f 4d 61 6b 65 57 |t, since| DoMakeW|
|000022c0| 69 6e 64 6f 77 73 0d 09 | 09 09 09 77 69 6c 6c 20 |indows..|...will |
|000022d0| 6e 65 65 64 20 74 6f 20 | 6b 6e 6f 77 20 77 68 69 |need to |know whi|
|000022e0| 63 68 20 76 69 65 77 73 | 20 74 6f 20 69 6e 73 74 |ch views| to inst|
|000022f0| 61 6c 6c 20 69 6e 20 74 | 68 65 20 77 69 6e 64 6f |all in t|he windo|
|00002300| 77 73 20 69 74 0d 09 09 | 09 09 63 72 65 61 74 65 |ws it...|..create|
|00002310| 73 7d 0d 0d 0d 09 09 50 | 52 4f 43 45 44 55 52 45 |s}.....P|ROCEDURE|
|00002320| 20 20 54 46 72 61 63 41 | 70 70 44 6f 63 75 6d 65 | TFracA|ppDocume|
|00002330| 6e 74 2e 42 75 69 6c 64 | 4f 66 66 57 6f 72 6c 64 |nt.Build|OffWorld|
|00002340| 20 28 73 69 7a 65 4f 66 | 44 6f 63 3a 20 52 65 63 | (sizeOf|Doc: Rec|
|00002350| 74 29 3b 0d 09 09 09 7b | 20 41 6c 6c 6f 63 61 74 |t);....{| Allocat|
|00002360| 65 73 20 6f 66 66 73 63 | 72 65 65 6e 20 67 44 65 |es offsc|reen gDe|
|00002370| 76 69 63 65 20 61 6e 64 | 20 70 6f 72 74 20 66 6f |vice and| port fo|
|00002380| 72 20 64 6f 63 75 6d 65 | 6e 74 20 64 61 74 61 2e |r docume|nt data.|
|00002390| 20 7d 0d 09 09 09 0d 09 | 09 50 52 4f 43 45 44 55 | }......|.PROCEDU|
|000023a0| 52 45 20 20 54 46 72 61 | 63 41 70 70 44 6f 63 75 |RE TFra|cAppDocu|
|000023b0| 6d 65 6e 74 2e 53 65 74 | 55 70 43 6f 6e 73 74 61 |ment.Set|UpConsta|
|000023c0| 6e 74 73 3b 0d 09 09 09 | 7b 20 53 65 74 73 20 75 |nts;....|{ Sets u|
|000023d0| 70 20 73 74 61 72 74 69 | 6e 67 20 63 6f 6e 73 74 |p starti|ng const|
|000023e0| 61 6e 74 73 20 66 6f 72 | 20 63 61 6c 63 75 6c 61 |ants for| calcula|
|000023f0| 74 69 6f 6e 2e 20 7d 0d | 09 09 09 0d 09 09 50 52 |tion. }.|......PR|
|00002400| 4f 43 45 44 55 52 45 20 | 20 09 54 46 72 61 63 41 |OCEDURE | .TFracA|
|00002410| 70 70 44 6f 63 75 6d 65 | 6e 74 2e 49 46 72 61 63 |ppDocume|nt.IFrac|
|00002420| 41 70 70 44 6f 63 75 6d | 65 6e 74 3b 0d 09 09 09 |AppDocum|ent;....|
|00002430| 7b 49 6e 69 74 20 72 6f | 75 74 69 6e 65 20 66 6f |{Init ro|utine fo|
|00002440| 72 20 74 68 65 20 64 6f | 63 75 6d 65 6e 74 2c 20 |r the do|cument, |
|00002450| 73 65 74 73 20 75 70 20 | 74 68 65 20 6f 62 6a 65 |sets up |the obje|
|00002460| 63 74 2c 20 74 68 65 6e | 20 74 68 65 20 66 72 61 |ct, then| the fra|
|00002470| 63 74 61 6c 20 64 65 66 | 61 75 6c 74 20 73 74 61 |ctal def|ault sta|
|00002480| 74 65 2e 20 7d 0d 0d 09 | 09 50 52 4f 43 45 44 55 |te. }...|.PROCEDU|
|00002490| 52 45 20 54 46 72 61 63 | 41 70 70 44 6f 63 75 6d |RE TFrac|AppDocum|
|000024a0| 65 6e 74 2e 44 6f 49 6e | 69 74 69 61 6c 53 74 61 |ent.DoIn|itialSta|
|000024b0| 74 65 3b 20 20 4f 56 45 | 52 52 49 44 45 3b 0d 09 |te; OVE|RRIDE;..|
|000024c0| 09 09 7b 20 44 6f 65 73 | 20 74 68 65 20 77 6f 72 |..{ Does| the wor|
|000024d0| 6b 20 66 6f 72 20 61 20 | 4e 65 77 20 6f 70 65 72 |k for a |New oper|
|000024e0| 61 74 69 6f 6e 2c 20 77 | 68 65 72 65 20 77 65 20 |ation, w|here we |
|000024f0| 73 74 61 72 74 20 77 69 | 74 68 20 61 20 6e 65 77 |start wi|th a new|
|00002500| 20 66 72 61 63 74 61 6c | 0d 09 09 09 09 74 68 61 | fractal|.....tha|
|00002510| 74 20 64 6f 65 73 6e 27 | 74 20 68 61 76 65 20 61 |t doesn'|t have a|
|00002520| 6e 79 20 73 74 6f 72 65 | 64 20 64 61 74 61 2e 20 |ny store|d data. |
|00002530| 20 54 68 69 73 20 69 73 | 20 73 65 74 20 75 70 20 | This is| set up |
|00002540| 74 68 65 20 76 69 65 77 | 20 77 69 74 68 20 6e 6f |the view| with no|
|00002550| 0d 09 09 09 09 64 61 74 | 61 20 61 6e 64 20 73 65 |.....dat|a and se|
|00002560| 74 20 75 70 20 74 68 65 | 20 66 72 61 63 74 61 6c |t up the| fractal|
|00002570| 20 63 6f 6f 72 64 69 6e | 61 74 65 73 20 74 6f 20 | coordin|ates to |
|00002580| 74 68 65 20 64 65 66 61 | 75 6c 74 2e 20 7d 0d 0d |the defa|ult. }..|
|00002590| 09 09 50 52 4f 43 45 44 | 55 52 45 20 54 46 72 61 |..PROCED|URE TFra|
|000025a0| 63 41 70 70 44 6f 63 75 | 6d 65 6e 74 2e 44 6f 4d |cAppDocu|ment.DoM|
|000025b0| 61 6b 65 57 69 6e 64 6f | 77 73 3b 20 4f 56 45 52 |akeWindo|ws; OVER|
|000025c0| 52 49 44 45 3b 0d 09 09 | 09 7b 4c 61 75 6e 63 68 |RIDE;...|.{Launch|
|000025d0| 65 73 20 74 68 65 20 77 | 69 6e 64 6f 77 20 77 68 |es the w|indow wh|
|000025e0| 69 63 68 20 77 69 6c 6c | 20 72 65 70 72 65 73 65 |ich will| represe|
|000025f0| 6e 74 20 74 68 65 20 64 | 6f 63 75 6d 65 6e 74 20 |nt the d|ocument |
|00002600| 6f 6e 20 74 68 65 0d 09 | 09 09 09 73 63 72 65 65 |on the..|...scree|
|00002610| 6e 2e 20 20 45 76 65 72 | 79 20 64 6f 63 75 6d 65 |n. Ever|y docume|
|00002620| 6e 74 20 77 68 69 63 68 | 20 68 61 73 20 61 6e 79 |nt which| has any|
|00002630| 20 73 63 72 65 65 6e 20 | 64 69 73 70 6c 61 79 20 | screen |display |
|00002640| 4d 55 53 54 0d 09 09 09 | 09 6f 76 65 72 72 69 64 |MUST....|.overrid|
|00002650| 65 20 74 68 69 73 20 6d | 65 74 68 6f 64 7d 0d 0d |e this m|ethod}..|
|00002660| 09 09 50 52 4f 43 45 44 | 55 52 45 20 54 46 72 61 |..PROCED|URE TFra|
|00002670| 63 41 70 70 44 6f 63 75 | 6d 65 6e 74 2e 44 6f 4d |cAppDocu|ment.DoM|
|00002680| 61 6b 65 56 69 65 77 73 | 28 66 6f 72 50 72 69 6e |akeViews|(forPrin|
|00002690| 74 69 6e 67 3a 20 42 4f | 4f 4c 45 41 4e 29 3b 20 |ting: BO|OLEAN); |
|000026a0| 4f 56 45 52 52 49 44 45 | 3b 0d 09 09 09 7b 4c 61 |OVERRIDE|;....{La|
|000026b0| 75 6e 63 68 65 73 20 74 | 68 65 20 76 69 65 77 20 |unches t|he view |
|000026c0| 77 68 69 63 68 20 69 73 | 20 73 65 65 6e 20 69 6e |which is| seen in|
|000026d0| 20 74 68 65 20 64 6f 63 | 75 6d 65 6e 74 27 73 20 | the doc|ument's |
|000026e0| 77 69 6e 64 6f 77 2e 20 | 20 45 76 65 72 79 0d 09 |window. | Every..|
|000026f0| 09 09 09 64 6f 63 75 6d | 65 6e 74 20 77 68 69 63 |...docum|ent whic|
|00002700| 68 20 68 61 73 20 61 6e | 79 20 73 63 72 65 65 6e |h has an|y screen|
|00002710| 20 64 69 73 70 6c 61 79 | 20 6f 72 20 77 68 69 63 | display| or whic|
|00002720| 68 20 63 61 6e 20 62 65 | 20 70 72 69 6e 74 65 64 |h can be| printed|
|00002730| 0d 09 09 09 09 4d 55 53 | 54 20 6f 76 65 72 72 69 |.....MUS|T overri|
|00002740| 64 65 20 74 68 69 73 20 | 6d 65 74 68 6f 64 7d 0d |de this |method}.|
|00002750| 0d 09 09 50 52 4f 43 45 | 44 55 52 45 20 54 46 72 |...PROCE|DURE TFr|
|00002760| 61 63 41 70 70 44 6f 63 | 75 6d 65 6e 74 2e 44 6f |acAppDoc|ument.Do|
|00002770| 4e 65 65 64 44 69 73 6b | 53 70 61 63 65 28 56 41 |NeedDisk|Space(VA|
|00002780| 52 20 64 61 74 61 46 6f | 72 6b 42 79 74 65 73 2c |R dataFo|rkBytes,|
|00002790| 20 0d 09 09 09 09 09 09 | 09 09 09 09 09 09 72 73 | .......|......rs|
|000027a0| 72 63 46 6f 72 6b 42 79 | 74 65 73 3a 20 4c 4f 4e |rcForkBy|tes: LON|
|000027b0| 47 49 4e 54 29 3b 20 20 | 4f 56 45 52 52 49 44 45 |GINT); |OVERRIDE|
|000027c0| 3b 0d 09 09 09 7b 20 46 | 69 6e 64 73 20 6f 75 74 |;....{ F|inds out|
|000027d0| 20 74 68 65 20 65 6e 74 | 69 72 65 20 73 69 7a 65 | the ent|ire size|
|000027e0| 20 6f 66 20 74 68 65 20 | 6f 62 6a 65 63 74 20 74 | of the |object t|
|000027f0| 6f 20 62 65 20 73 61 76 | 65 64 20 69 6e 74 6f 20 |o be sav|ed into |
|00002800| 74 68 65 20 66 69 6c 65 | 20 73 6f 20 74 68 61 74 |the file| so that|
|00002810| 20 74 68 65 0d 09 09 09 | 09 63 6f 72 72 65 63 74 | the....|.correct|
|00002820| 20 61 6d 6f 75 6e 74 20 | 6f 66 20 64 69 73 6b 20 | amount |of disk |
|00002830| 73 70 61 63 65 20 63 61 | 6e 20 62 65 20 75 73 65 |space ca|n be use|
|00002840| 64 2e 20 20 7d 0d 0d 09 | 09 50 52 4f 43 45 44 55 |d. }...|.PROCEDU|
|00002850| 52 45 20 54 46 72 61 63 | 41 70 70 44 6f 63 75 6d |RE TFrac|AppDocum|
|00002860| 65 6e 74 2e 44 6f 52 65 | 61 64 28 61 52 65 66 4e |ent.DoRe|ad(aRefN|
|00002870| 75 6d 3a 20 49 4e 54 45 | 47 45 52 3b 20 72 73 72 |um: INTE|GER; rsr|
|00002880| 63 45 78 69 73 74 73 2c | 0d 09 09 09 09 09 09 09 |cExists,|........|
|00002890| 09 09 09 09 09 66 6f 72 | 50 72 69 6e 74 69 6e 67 |.....for|Printing|
|000028a0| 3a 20 42 4f 4f 4c 45 41 | 4e 29 3b 09 4f 56 45 52 |: BOOLEA|N);.OVER|
|000028b0| 52 49 44 45 3b 0d 09 09 | 09 7b 20 52 65 61 64 73 |RIDE;...|.{ Reads|
|000028c0| 20 69 6e 20 74 68 65 20 | 64 61 74 61 20 6f 75 74 | in the |data out|
|000028d0| 20 6f 66 20 74 68 65 20 | 64 61 74 61 20 66 6f 72 | of the |data for|
|000028e0| 6b 20 6f 66 20 74 68 65 | 20 66 69 6c 65 2c 20 61 |k of the| file, a|
|000028f0| 6e 64 20 73 74 6f 77 73 | 20 69 74 20 69 6e 74 6f |nd stows| it into|
|00002900| 20 74 68 65 0d 09 09 09 | 09 64 6f 63 75 6d 65 6e | the....|.documen|
|00002910| 74 d5 73 20 62 69 74 4d | 61 70 2e 20 20 41 6c 73 |t.s bitM|ap. Als|
|00002920| 6f 20 72 65 73 65 74 73 | 20 74 68 65 20 76 61 72 |o resets| the var|
|00002930| 73 20 69 6e 20 74 68 65 | 20 64 6f 63 75 6d 65 6e |s in the| documen|
|00002940| 74 20 6f 62 6a 65 63 74 | 20 74 6f 20 6d 61 74 63 |t object| to matc|
|00002950| 68 0d 09 09 09 09 74 68 | 65 20 73 61 76 65 64 20 |h.....th|e saved |
|00002960| 76 61 6c 75 65 73 20 66 | 72 6f 6d 20 74 68 65 20 |values f|rom the |
|00002970| 68 65 61 64 65 72 2e 20 | 7d 0d 0d 09 09 50 52 4f |header. |}....PRO|
|00002980| 43 45 44 55 52 45 20 54 | 46 72 61 63 41 70 70 44 |CEDURE T|FracAppD|
|00002990| 6f 63 75 6d 65 6e 74 2e | 44 6f 57 72 69 74 65 28 |ocument.|DoWrite(|
|000029a0| 61 52 65 66 4e 75 6d 3a | 20 49 4e 54 45 47 45 52 |aRefNum:| INTEGER|
|000029b0| 3b 0d 09 09 09 09 09 09 | 09 09 09 09 09 09 6d 61 |;.......|......ma|
|000029c0| 6b 69 6e 67 43 6f 70 79 | 3a 20 42 4f 4f 4c 45 41 |kingCopy|: BOOLEA|
|000029d0| 4e 29 3b 09 4f 56 45 52 | 52 49 44 45 3b 0d 09 09 |N);.OVER|RIDE;...|
|000029e0| 09 7b 20 43 6f 6e 76 65 | 72 74 73 20 74 68 65 20 |.{ Conve|rts the |
|000029f0| 64 61 74 61 20 69 6e 20 | 74 68 65 20 64 6f 63 75 |data in |the docu|
|00002a00| 6d 65 6e 74 d5 73 20 70 | 6f 72 74 20 69 6e 74 6f |ment.s p|ort into|
|00002a10| 20 61 20 50 49 43 54 2c | 20 74 68 65 6e 20 77 72 | a PICT,| then wr|
|00002a20| 69 74 65 73 20 74 68 61 | 74 20 62 6c 6f 63 6b 0d |ites tha|t block.|
|00002a30| 09 09 09 09 6f 75 74 20 | 74 6f 20 74 68 65 20 66 |....out |to the f|
|00002a40| 69 6c 65 2c 20 6d 61 6b | 69 6e 67 20 69 74 20 69 |ile, mak|ing it i|
|00002a50| 6e 74 6f 20 61 20 73 74 | 61 6e 64 61 72 64 20 50 |nto a st|andard P|
|00002a60| 49 43 54 20 66 69 6c 65 | 2e 20 7d 0d 0d 09 09 50 |ICT file|. }....P|
|00002a70| 52 4f 43 45 44 55 52 45 | 20 54 46 72 61 63 41 70 |ROCEDURE| TFracAp|
|00002a80| 70 44 6f 63 75 6d 65 6e | 74 2e 46 72 65 65 44 61 |pDocumen|t.FreeDa|
|00002a90| 74 61 3b 20 4f 56 45 52 | 52 49 44 45 3b 0d 09 09 |ta; OVER|RIDE;...|
|00002aa0| 09 7b 7d 0d 0d 09 09 50 | 52 4f 43 45 44 55 52 45 |.{}....P|ROCEDURE|
|00002ab0| 20 54 46 72 61 63 41 70 | 70 44 6f 63 75 6d 65 6e | TFracAp|pDocumen|
|00002ac0| 74 2e 46 72 65 65 3b 20 | 4f 56 45 52 52 49 44 45 |t.Free; |OVERRIDE|
|00002ad0| 3b 0d 09 09 09 7b 20 46 | 72 65 65 20 6d 65 74 68 |;....{ F|ree meth|
|00002ae0| 6f 64 20 66 6f 72 20 6f | 75 72 20 64 6f 63 75 6d |od for o|ur docum|
|00002af0| 65 6e 74 2e 20 20 49 74 | 20 64 69 73 70 6f 73 65 |ent. It| dispose|
|00002b00| 73 20 74 68 65 20 64 61 | 74 61 20 62 6c 6f 63 6b |s the da|ta block|
|00002b10| 20 6f 66 20 74 68 65 20 | 70 69 63 74 75 72 65 0d | of the |picture.|
|00002b20| 09 09 09 09 64 61 74 61 | 20 74 68 61 74 20 77 61 |....data| that wa|
|00002b30| 73 20 72 65 61 64 20 69 | 6e 20 66 72 6f 6d 20 74 |s read i|n from t|
|00002b40| 68 65 20 64 69 73 6b 2c | 20 61 6e 64 20 6b 69 6c |he disk,| and kil|
|00002b50| 6c 73 20 6f 66 66 73 63 | 72 65 65 6e 20 73 74 75 |ls offsc|reen stu|
|00002b60| 66 66 2e 20 7d 0d 0d 09 | 09 50 52 4f 43 45 44 55 |ff. }...|.PROCEDU|
|00002b70| 52 45 20 20 54 46 72 61 | 63 41 70 70 44 6f 63 75 |RE TFra|cAppDocu|
|00002b80| 6d 65 6e 74 2e 43 61 6c | 63 43 69 74 79 3b 0d 09 |ment.Cal|cCity;..|
|00002b90| 09 09 7b 20 44 6f 65 73 | 20 74 68 65 20 69 64 6c |..{ Does| the idl|
|00002ba0| 65 20 74 69 6d 65 20 63 | 61 6c 63 75 6c 61 74 69 |e time c|alculati|
|00002bb0| 6f 6e 73 20 66 6f 72 20 | 74 68 65 20 64 6f 63 75 |ons for |the docu|
|00002bc0| 6d 65 6e 74 2e 20 20 54 | 68 69 73 20 69 73 20 66 |ment. T|his is f|
|00002bd0| 6f 72 20 74 68 65 20 61 | 63 74 75 61 6c 0d 09 09 |or the a|ctual...|
|00002be0| 09 09 66 72 61 63 74 61 | 6c 20 63 61 6c 63 75 6c |..fracta|l calcul|
|00002bf0| 61 74 69 6f 6e 73 2e 20 | 20 49 74 20 69 73 20 63 |ations. | It is c|
|00002c00| 61 6c 6c 65 64 20 62 79 | 20 74 68 65 20 68 61 6e |alled by| the han|
|00002c10| 64 6c 65 72 20 66 6f 72 | 20 74 68 65 20 41 70 70 |dler for| the App|
|00002c20| 6c 69 63 61 74 69 6f 6e | 0d 09 09 09 09 44 6f 49 |lication|.....DoI|
|00002c30| 64 6c 65 2e 20 20 49 74 | 20 69 73 20 63 61 6c 6c |dle. It| is call|
|00002c40| 65 64 20 66 6f 72 20 61 | 6c 6c 20 6f 70 65 6e 20 |ed for a|ll open |
|00002c50| 64 6f 63 75 6d 65 6e 74 | 73 2e 20 7d 0d 0d 09 45 |document|s. }...E|
|00002c60| 4e 44 3b 09 7b 20 54 46 | 72 61 63 41 70 70 44 6f |ND;.{ TF|racAppDo|
|00002c70| 63 75 6d 65 6e 74 20 7d | 0d 0d 0d 0d 7b 2d 2d 2d |cument }|....{---|
|00002c80| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00002c90| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 20 20 56 69 |--------|---- Vi|
|00002ca0| 65 77 20 20 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |ew ----|--------|
|00002cb0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00002cc0| 2d 2d 2d 7d 0d 0d 09 54 | 46 72 61 63 41 70 70 56 |---}...T|FracAppV|
|00002cd0| 69 65 77 20 3d 20 4f 42 | 4a 45 43 54 28 54 56 69 |iew = OB|JECT(TVi|
|00002ce0| 65 77 29 0d 0d 09 09 7b | 20 54 68 65 73 65 20 66 |ew)....{| These f|
|00002cf0| 69 65 6c 64 73 20 61 72 | 65 20 66 6f 72 20 74 68 |ields ar|e for th|
|00002d00| 65 20 75 73 65 20 6f 66 | 20 74 68 65 20 76 69 65 |e use of| the vie|
|00002d10| 77 2c 20 61 6e 64 20 68 | 65 6c 70 20 64 65 66 69 |w, and h|elp defi|
|00002d20| 6e 65 20 6f 75 72 20 73 | 70 65 63 69 66 69 63 20 |ne our s|pecific |
|00002d30| 76 69 65 77 2c 20 74 68 | 61 74 0d 09 09 09 69 73 |view, th|at....is|
|00002d40| 20 74 68 65 20 6f 66 66 | 73 63 72 65 65 6e 20 62 | the off|screen b|
|00002d50| 69 74 4d 61 70 20 72 65 | 70 72 65 73 65 6e 74 61 |itMap re|presenta|
|00002d60| 74 69 6f 6e 20 6f 66 20 | 74 68 65 20 66 72 61 63 |tion of |the frac|
|00002d70| 74 61 6c 2e 20 7d 0d 09 | 09 66 53 65 6c 65 63 74 |tal. }..|.fSelect|
|00002d80| 69 6f 6e 52 65 63 74 3a | 09 09 09 09 09 52 65 63 |ionRect:|.....Rec|
|00002d90| 74 3b 09 09 7b 20 72 65 | 63 74 61 6e 67 6c 65 20 |t;..{ re|ctangle |
|00002da0| 74 68 61 74 20 69 73 20 | 63 75 72 72 65 6e 74 20 |that is |current |
|00002db0| 73 65 6c 65 63 74 69 6f | 6e 20 7d 0d 09 09 66 46 |selectio|n }...fF|
|00002dc0| 72 61 63 41 70 70 44 6f | 63 75 6d 65 6e 74 3a 09 |racAppDo|cument:.|
|00002dd0| 09 09 09 54 46 72 61 63 | 41 70 70 44 6f 63 75 6d |...TFrac|AppDocum|
|00002de0| 65 6e 74 3b 09 7b 20 68 | 61 6e 64 79 20 74 6f 20 |ent;.{ h|andy to |
|00002df0| 61 76 6f 69 64 20 74 79 | 70 65 20 63 6f 65 72 63 |avoid ty|pe coerc|
|00002e00| 69 6f 6e 2e 20 7d 0d 09 | 09 0d 09 09 50 52 4f 43 |ion. }..|....PROC|
|00002e10| 45 44 55 52 45 20 09 54 | 46 72 61 63 41 70 70 56 |EDURE .T|FracAppV|
|00002e20| 69 65 77 2e 49 46 72 61 | 63 41 70 70 56 69 65 77 |iew.IFra|cAppView|
|00002e30| 20 28 69 74 73 44 6f 63 | 75 6d 65 6e 74 3a 20 54 | (itsDoc|ument: T|
|00002e40| 46 72 61 63 41 70 70 44 | 6f 63 75 6d 65 6e 74 3b |FracAppD|ocument;|
|00002e50| 0d 09 09 09 09 73 69 7a | 65 4f 66 56 69 65 77 3a |.....siz|eOfView:|
|00002e60| 20 52 65 63 74 29 3b 0d | 09 09 09 7b 20 49 6e 69 | Rect);.|...{ Ini|
|00002e70| 74 73 20 74 68 65 20 76 | 69 65 77 20 6f 62 6a 65 |ts the v|iew obje|
|00002e80| 63 74 20 69 74 73 65 6c | 66 2e 20 7d 0d 0d 09 09 |ct itsel|f. }....|
|00002e90| 50 52 4f 43 45 44 55 52 | 45 20 54 46 72 61 63 41 |PROCEDUR|E TFracA|
|00002ea0| 70 70 56 69 65 77 2e 44 | 72 61 77 28 61 72 65 61 |ppView.D|raw(area|
|00002eb0| 3a 20 52 65 63 74 29 3b | 20 4f 56 45 52 52 49 44 |: Rect);| OVERRID|
|00002ec0| 45 3b 0d 09 09 09 7b 44 | 72 61 77 73 20 74 68 65 |E;....{D|raws the|
|00002ed0| 20 76 69 65 77 20 73 65 | 65 6e 20 69 6e 20 74 68 | view se|en in th|
|00002ee0| 65 20 77 69 6e 64 6f 77 | 2e 20 20 45 76 65 72 79 |e window|. Every|
|00002ef0| 20 6e 6f 6e 62 6c 61 6e | 6b 20 76 69 65 77 20 4d | nonblan|k view M|
|00002f00| 55 53 54 0d 09 09 09 09 | 6f 76 65 72 72 69 64 65 |UST.....|override|
|00002f10| 20 74 68 69 73 20 6d 65 | 74 68 6f 64 7d 0d 0d 09 | this me|thod}...|
|00002f20| 09 46 55 4e 43 54 49 4f | 4e 20 54 46 72 61 63 41 |.FUNCTIO|N TFracA|
|00002f30| 70 70 56 69 65 77 2e 44 | 6f 4d 65 6e 75 43 6f 6d |ppView.D|oMenuCom|
|00002f40| 6d 61 6e 64 28 0d 09 09 | 09 09 09 09 09 09 09 09 |mand(...|........|
|00002f50| 09 09 61 43 6d 64 4e 75 | 6d 62 65 72 3a 20 43 6d |..aCmdNu|mber: Cm|
|00002f60| 64 4e 75 6d 62 65 72 29 | 3a 20 54 43 6f 6d 6d 61 |dNumber)|: TComma|
|00002f70| 6e 64 3b 20 20 4f 56 45 | 52 52 49 44 45 3b 0d 09 |nd; OVE|RRIDE;..|
|00002f80| 09 09 7b 20 48 61 6e 64 | 6c 65 20 74 68 65 20 6d |..{ Hand|le the m|
|00002f90| 65 6e 75 20 63 68 6f 69 | 63 65 73 20 66 6f 72 20 |enu choi|ces for |
|00002fa0| 4e 65 77 20 46 72 61 63 | 74 61 6c 20 6f 75 74 20 |New Frac|tal out |
|00002fb0| 6f 66 20 74 68 65 20 46 | 72 61 63 74 61 6c 20 4d |of the F|ractal M|
|00002fc0| 65 6e 75 2e 20 7d 0d 0d | 09 09 50 52 4f 43 45 44 |enu. }..|..PROCED|
|00002fd0| 55 52 45 20 54 46 72 61 | 63 41 70 70 56 69 65 77 |URE TFra|cAppView|
|00002fe0| 2e 44 6f 53 65 74 75 70 | 4d 65 6e 75 73 3b 20 20 |.DoSetup|Menus; |
|00002ff0| 4f 56 45 52 52 49 44 45 | 3b 0d 09 09 09 7b 20 53 |OVERRIDE|;....{ S|
|00003000| 65 74 20 75 70 20 74 68 | 65 20 4e 65 77 20 46 72 |et up th|e New Fr|
|00003010| 61 63 74 61 6c 20 6d 65 | 6e 75 73 20 63 68 6f 69 |actal me|nus choi|
|00003020| 63 65 20 69 6e 20 46 72 | 61 63 74 61 6c 20 4d 65 |ce in Fr|actal Me|
|00003030| 6e 75 2c 20 62 61 73 65 | 64 20 6f 6e 20 73 65 6c |nu, base|d on sel|
|00003040| 65 63 74 69 6f 6e 2e 20 | 7d 0d 0d 09 09 46 55 4e |ection. |}....FUN|
|00003050| 43 54 49 4f 4e 20 20 54 | 46 72 61 63 41 70 70 56 |CTION T|FracAppV|
|00003060| 69 65 77 2e 44 6f 4d 6f | 75 73 65 43 6f 6d 6d 61 |iew.DoMo|useComma|
|00003070| 6e 64 28 56 41 52 20 64 | 6f 77 6e 4c 6f 63 61 6c |nd(VAR d|ownLocal|
|00003080| 50 6f 69 6e 74 3a 20 50 | 6f 69 6e 74 3b 20 0d 09 |Point: P|oint; ..|
|00003090| 09 09 09 09 09 56 41 52 | 20 69 6e 66 6f 3a 20 45 |.....VAR| info: E|
|000030a0| 76 65 6e 74 49 6e 66 6f | 3b 0d 09 09 09 09 09 09 |ventInfo|;.......|
|000030b0| 56 41 52 20 68 79 73 74 | 65 72 65 73 69 73 3a 20 |VAR hyst|eresis: |
|000030c0| 50 6f 69 6e 74 29 3a 20 | 54 43 6f 6d 6d 61 6e 64 |Point): |TCommand|
|000030d0| 3b 09 4f 56 45 52 52 49 | 44 45 3b 0d 09 09 09 7b |;.OVERRI|DE;....{|
|000030e0| 20 48 61 6e 64 6c 65 20 | 74 68 65 20 6d 6f 75 73 | Handle |the mous|
|000030f0| 65 20 65 76 65 6e 74 73 | 20 69 6e 20 74 68 65 20 |e events| in the |
|00003100| 76 69 65 77 2e 20 20 4e | 65 65 64 73 20 74 6f 20 |view. N|eeds to |
|00003110| 64 6f 20 74 68 65 20 73 | 65 6c 65 63 74 69 6f 6e |do the s|election|
|00003120| 20 6f 66 20 61 20 6e 65 | 77 0d 09 09 09 09 72 61 | of a ne|w.....ra|
|00003130| 6e 67 65 20 66 6f 72 20 | 74 68 65 20 6e 65 78 74 |nge for |the next|
|00003140| 20 66 72 61 63 74 61 6c | 20 74 6f 20 62 65 20 63 | fractal| to be c|
|00003150| 61 6c 63 75 6c 61 74 65 | 64 2e 20 20 7d 0d 0d 09 |alculate|d. }...|
|00003160| 09 50 52 4f 43 45 44 55 | 52 45 20 54 46 72 61 63 |.PROCEDU|RE TFrac|
|00003170| 41 70 70 56 69 65 77 2e | 44 6f 48 69 67 68 6c 69 |AppView.|DoHighli|
|00003180| 67 68 74 53 65 6c 65 63 | 74 69 6f 6e 28 66 72 6f |ghtSelec|tion(fro|
|00003190| 6d 48 4c 2c 20 74 6f 48 | 4c 3a 20 48 4c 53 74 61 |mHL, toH|L: HLSta|
|000031a0| 74 65 29 3b 20 4f 56 45 | 52 52 49 44 45 3b 0d 09 |te); OVE|RRIDE;..|
|000031b0| 09 09 7b 20 48 69 67 68 | 6c 69 67 68 74 20 74 68 |..{ High|light th|
|000031c0| 65 20 63 75 72 72 65 6e | 74 20 73 65 6c 65 63 74 |e curren|t select|
|000031d0| 69 6f 6e 20 72 65 63 74 | 61 6e 67 6c 65 20 69 66 |ion rect|angle if|
|000031e0| 20 74 68 65 72 65 20 69 | 73 20 6f 6e 65 2e 20 20 | there i|s one. |
|000031f0| 7d 0d 0d 09 45 4e 44 3b | 09 7b 20 54 46 72 61 63 |}...END;|.{ TFrac|
|00003200| 41 70 70 56 69 65 77 20 | 7d 0d 0d 0d 7b 2d 2d 2d |AppView |}...{---|
|00003210| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00003220| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 20 20 43 6f |--------|---- Co|
|00003230| 6d 6d 61 6e 64 20 20 2d | 2d 2d 2d 2d 2d 2d 2d 2d |mmand -|--------|
|00003240| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00003250| 2d 2d 2d 2d 2d 2d 7d 0d | 0d 09 54 41 72 65 61 53 |------}.|..TAreaS|
|00003260| 65 6c 65 63 74 6f 72 20 | 3d 20 4f 42 4a 45 43 54 |elector |= OBJECT|
|00003270| 28 54 43 6f 6d 6d 61 6e | 64 29 0d 0d 09 09 7b 20 |(TComman|d)....{ |
|00003280| 54 68 65 73 65 20 66 69 | 65 6c 64 73 20 61 72 65 |These fi|elds are|
|00003290| 20 66 6f 72 20 74 68 65 | 20 63 6f 6d 6d 61 6e 64 | for the| command|
|000032a0| 20 6f 62 6a 65 63 74 73 | 20 74 68 61 74 20 77 65 | objects| that we|
|000032b0| 20 75 73 65 2e 20 20 54 | 68 65 20 66 69 72 73 74 | use. T|he first|
|000032c0| 20 6f 6e 65 20 77 65 20 | 6e 65 65 64 0d 09 09 09 | one we |need....|
|000032d0| 66 6f 72 20 73 75 72 65 | 20 69 73 20 74 68 65 20 |for sure| is the |
|000032e0| 73 65 6c 65 63 74 69 6f | 6e 20 6f 62 6a 65 63 74 |selectio|n object|
|000032f0| 20 74 6f 20 68 61 6e 64 | 6c 65 20 74 68 65 20 6d | to hand|le the m|
|00003300| 6f 75 73 65 20 73 65 6c | 65 63 74 69 6f 6e 20 69 |ouse sel|ection i|
|00003310| 6e 20 74 68 65 20 63 6f | 6e 74 65 6e 74 0d 09 09 |n the co|ntent...|
|00003320| 09 72 65 67 69 6f 6e 20 | 6f 66 20 74 68 65 20 76 |.region |of the v|
|00003330| 69 65 77 2e 20 20 7d 0d | 09 09 66 4f 77 6e 65 72 |iew. }.|..fOwner|
|00003340| 56 69 65 77 3a 09 54 46 | 72 61 63 41 70 70 56 69 |View:.TF|racAppVi|
|00003350| 65 77 3b 0d 09 09 0d 0d | 09 09 50 52 4f 43 45 44 |ew;.....|..PROCED|
|00003360| 55 52 45 20 54 41 72 65 | 61 53 65 6c 65 63 74 6f |URE TAre|aSelecto|
|00003370| 72 2e 49 41 72 65 61 53 | 65 6c 65 63 74 6f 72 28 |r.IAreaS|elector(|
|00003380| 6f 77 6e 65 72 56 69 65 | 77 3a 20 54 46 72 61 63 |ownerVie|w: TFrac|
|00003390| 41 70 70 56 69 65 77 3b | 20 73 74 61 72 74 50 74 |AppView;| startPt|
|000033a0| 3a 20 50 6f 69 6e 74 29 | 3b 0d 09 09 09 7b 20 49 |: Point)|;....{ I|
|000033b0| 6e 69 74 69 61 6c 69 7a | 65 20 74 68 65 20 73 65 |nitializ|e the se|
|000033c0| 6c 65 63 74 69 6f 6e 20 | 6f 62 6a 65 63 74 20 69 |lection |object i|
|000033d0| 74 73 65 6c 66 2e 20 20 | 54 68 69 73 20 62 61 73 |tself. |This bas|
|000033e0| 69 63 61 6c 6c 79 20 73 | 65 74 73 20 75 70 20 77 |ically s|ets up w|
|000033f0| 69 74 68 20 49 4f 62 6a | 65 63 74 2c 0d 09 09 09 |ith IObj|ect,....|
|00003400| 09 74 68 65 6e 20 73 65 | 74 73 20 74 68 65 20 66 |.then se|ts the f|
|00003410| 53 65 6c 65 63 74 69 6f | 6e 52 65 63 74 20 74 6f |Selectio|nRect to|
|00003420| 20 62 65 20 61 20 6d 69 | 6e 69 6d 61 6c 20 72 65 | be a mi|nimal re|
|00003430| 63 74 61 6e 67 6c 65 2e | 20 7d 0d 09 09 09 09 0d |ctangle.| }......|
|00003440| 09 09 46 55 4e 43 54 49 | 4f 4e 20 20 54 41 72 65 |..FUNCTI|ON TAre|
|00003450| 61 53 65 6c 65 63 74 6f | 72 2e 54 72 61 63 6b 4d |aSelecto|r.TrackM|
|00003460| 6f 75 73 65 28 61 54 72 | 61 63 6b 50 68 61 73 65 |ouse(aTr|ackPhase|
|00003470| 3a 20 54 72 61 63 6b 50 | 68 61 73 65 3b 0d 09 09 |: TrackP|hase;...|
|00003480| 09 09 09 09 56 41 52 20 | 61 6e 63 68 6f 72 50 6f |....VAR |anchorPo|
|00003490| 69 6e 74 2c 20 70 72 65 | 76 69 6f 75 73 50 6f 69 |int, pre|viousPoi|
|000034a0| 6e 74 2c 20 6e 65 78 74 | 50 6f 69 6e 74 3a 20 50 |nt, next|Point: P|
|000034b0| 6f 69 6e 74 3b 0d 09 09 | 09 09 09 09 6d 6f 75 73 |oint;...|....mous|
|000034c0| 65 44 69 64 4d 6f 76 65 | 3a 20 42 4f 4f 4c 45 41 |eDidMove|: BOOLEA|
|000034d0| 4e 29 3a 20 54 43 6f 6d | 6d 61 6e 64 3b 20 20 4f |N): TCom|mand; O|
|000034e0| 56 45 52 52 49 44 45 3b | 0d 09 09 09 7b 20 54 72 |VERRIDE;|....{ Tr|
|000034f0| 61 63 6b 20 74 68 65 20 | 6d 6f 75 73 65 20 77 68 |ack the |mouse wh|
|00003500| 69 6c 65 20 74 68 65 20 | 62 75 74 74 6f 6e 20 69 |ile the |button i|
|00003510| 73 20 64 6f 77 6e 20 69 | 6e 20 74 68 65 20 76 69 |s down i|n the vi|
|00003520| 65 77 2e 20 7d 0d 0d 09 | 09 50 52 4f 43 45 44 55 |ew. }...|.PROCEDU|
|00003530| 52 45 20 54 41 72 65 61 | 53 65 6c 65 63 74 6f 72 |RE TArea|Selector|
|00003540| 2e 54 72 61 63 6b 46 65 | 65 64 62 61 63 6b 28 61 |.TrackFe|edback(a|
|00003550| 6e 63 68 6f 72 50 6f 69 | 6e 74 2c 20 6e 65 78 74 |nchorPoi|nt, next|
|00003560| 50 6f 69 6e 74 3a 20 50 | 6f 69 6e 74 3b 0d 09 09 |Point: P|oint;...|
|00003570| 09 09 09 09 09 09 09 09 | 74 75 72 6e 49 74 4f 6e |........|turnItOn|
|00003580| 2c 20 6d 6f 75 73 65 44 | 69 64 4d 6f 76 65 3a 20 |, mouseD|idMove: |
|00003590| 42 4f 4f 4c 45 41 4e 29 | 3b 20 20 4f 56 45 52 52 |BOOLEAN)|; OVERR|
|000035a0| 49 44 45 3b 0d 09 09 09 | 7b 20 46 65 65 64 62 61 |IDE;....|{ Feedba|
|000035b0| 63 6b 20 74 68 61 74 20 | 6d 61 74 63 68 65 73 20 |ck that |matches |
|000035c0| 62 65 74 74 65 72 2c 20 | 75 73 69 6e 67 20 74 68 |better, |using th|
|000035d0| 65 20 73 65 6c 65 63 74 | 69 6f 6e 20 70 61 74 74 |e select|ion patt|
|000035e0| 65 72 6e 2e 20 7d 0d 09 | 09 09 0d 09 09 50 52 4f |ern. }..|.....PRO|
|000035f0| 43 45 44 55 52 45 20 54 | 41 72 65 61 53 65 6c 65 |CEDURE T|AreaSele|
|00003600| 63 74 6f 72 2e 54 72 61 | 63 6b 43 6f 6e 73 74 72 |ctor.Tra|ckConstr|
|00003610| 61 69 6e 28 61 6e 63 68 | 6f 72 50 6f 69 6e 74 2c |ain(anch|orPoint,|
|00003620| 20 70 72 65 76 69 6f 75 | 73 50 6f 69 6e 74 3a 20 | previou|sPoint: |
|00003630| 50 6f 69 6e 74 3b 20 0d | 09 09 09 09 09 09 56 41 |Point; .|......VA|
|00003640| 52 20 6e 65 78 74 50 6f | 69 6e 74 3a 20 50 6f 69 |R nextPo|int: Poi|
|00003650| 6e 74 29 3b 20 20 4f 56 | 45 52 52 49 44 45 3b 0d |nt); OV|ERRIDE;.|
|00003660| 09 09 09 7b 20 43 6f 6e | 73 74 72 61 69 6e 20 74 |...{ Con|strain t|
|00003670| 68 65 20 6d 6f 75 73 65 | 20 6d 6f 76 65 6d 65 6e |he mouse| movemen|
|00003680| 74 20 74 6f 20 62 65 20 | 61 20 72 65 63 74 20 77 |t to be |a rect w|
|00003690| 68 69 63 68 20 6d 61 74 | 63 68 65 73 20 74 68 65 |hich mat|ches the|
|000036a0| 20 73 63 72 65 65 6e 2e | 20 7d 0d 09 09 09 0d 09 | screen.| }......|
|000036b0| 45 4e 44 3b 09 7b 20 54 | 41 72 65 61 53 65 6c 65 |END;.{ T|AreaSele|
|000036c0| 63 74 6f 72 20 7d 0d 0d | 7b 2d 2d 2d 2d 2d 2d 2d |ctor }..|{-------|
|000036d0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000036e0| 2d 2d 2d 2d 2d 2d 2d 2d | 20 20 47 61 72 44 65 76 |--------| GarDev|
|000036f0| 69 63 65 20 20 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |ice ---|--------|
|00003700| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00003710| 2d 2d 2d 2d 7d 0d 0d 7b | 20 57 65 20 61 6c 73 6f |----}..{| We also|
|00003720| 20 6e 65 65 64 20 74 6f | 20 6b 65 65 70 20 74 72 | need to| keep tr|
|00003730| 61 63 6b 20 6f 66 20 77 | 68 61 74 20 61 6c 6c 20 |ack of w|hat all |
|00003740| 67 44 65 76 69 63 65 73 | 20 69 6e 20 74 68 65 20 |gDevices| in the |
|00003750| 73 79 73 74 65 6d 20 61 | 72 65 20 64 6f 69 6e 67 |system a|re doing|
|00003760| 2e 20 20 49 6e 20 6f 72 | 64 65 72 0d 09 74 6f 20 |. In or|der..to |
|00003770| 68 61 6e 64 6c 65 20 74 | 68 69 73 20 64 79 6e 61 |handle t|his dyna|
|00003780| 6d 69 63 61 6c 6c 79 20 | 61 20 54 4c 69 73 74 20 |mically |a TList |
|00003790| 69 73 20 61 20 6c 6f 67 | 69 63 61 6c 20 63 68 6f |is a log|ical cho|
|000037a0| 69 63 65 2e 20 20 54 68 | 65 20 47 61 72 44 65 76 |ice. Th|e GarDev|
|000037b0| 69 63 65 20 6f 62 6a 65 | 63 74 73 20 77 69 6c 6c |ice obje|cts will|
|000037c0| 0d 09 6b 65 65 70 20 69 | 6e 66 6f 72 6d 61 74 69 |..keep i|nformati|
|000037d0| 6f 6e 20 61 62 6f 75 74 | 20 65 61 63 68 20 67 44 |on about| each gD|
|000037e0| 65 76 69 63 65 20 69 6e | 20 74 68 65 20 73 79 73 |evice in| the sys|
|000037f0| 74 65 6d 20 66 6f 72 20 | 75 73 65 20 69 6e 20 63 |tem for |use in c|
|00003800| 6f 6c 6f 72 20 68 61 6e | 64 6c 69 6e 67 2e 20 20 |olor han|dling. |
|00003810| 0d 09 57 68 65 6e 20 75 | 73 65 64 2c 20 74 68 65 |..When u|sed, the|
|00003820| 20 45 61 63 68 20 6d 65 | 74 68 6f 64 20 77 69 6c | Each me|thod wil|
|00003830| 6c 20 62 65 20 75 73 65 | 64 20 74 6f 20 61 66 66 |l be use|d to aff|
|00003840| 65 63 74 20 65 76 65 72 | 79 20 67 44 65 76 69 63 |ect ever|y gDevic|
|00003850| 65 20 69 6e 20 74 68 65 | 20 73 79 73 74 65 6d 2e |e in the| system.|
|00003860| 20 7d 0d 09 0d 09 54 47 | 61 72 44 65 76 69 63 65 | }....TG|arDevice|
|00003870| 20 3d 20 4f 42 4a 45 43 | 54 28 54 4f 62 6a 65 63 | = OBJEC|T(TObjec|
|00003880| 74 29 0d 09 0d 09 09 09 | 7b 20 54 68 65 20 66 69 |t)......|{ The fi|
|00003890| 65 6c 64 73 20 66 6f 72 | 20 65 61 63 68 20 47 61 |elds for| each Ga|
|000038a0| 72 44 65 76 69 63 65 20 | 6f 62 6a 65 63 74 2e 20 |rDevice |object. |
|000038b0| 7d 0d 09 09 66 43 6f 6c | 6f 72 54 61 62 6c 65 3a |}...fCol|orTable:|
|000038c0| 09 09 09 43 54 61 62 48 | 61 6e 64 6c 65 3b 0d 09 |...CTabH|andle;..|
|000038d0| 09 66 4f 6c 64 53 65 65 | 64 3a 09 09 09 09 4c 6f |.fOldSee|d:....Lo|
|000038e0| 6e 67 49 6e 74 3b 0d 09 | 09 66 44 65 76 69 63 65 |ngInt;..|.fDevice|
|000038f0| 3a 09 09 09 09 47 44 48 | 61 6e 64 6c 65 3b 0d 09 |:....GDH|andle;..|
|00003900| 09 66 44 72 61 77 53 65 | 65 64 3a 09 09 09 4c 6f |.fDrawSe|ed:...Lo|
|00003910| 6e 67 49 6e 74 3b 0d 0d | 09 09 50 52 4f 43 45 44 |ngInt;..|..PROCED|
|00003920| 55 52 45 20 54 47 61 72 | 44 65 76 69 63 65 2e 49 |URE TGar|Device.I|
|00003930| 47 61 72 44 65 76 69 63 | 65 20 28 4f 77 6e 65 72 |GarDevic|e (Owner|
|00003940| 47 44 65 76 69 63 65 3a | 20 47 44 48 61 6e 64 6c |GDevice:| GDHandl|
|00003950| 65 29 3b 0d 09 09 09 7b | 20 49 6e 69 74 69 61 6c |e);....{| Initial|
|00003960| 69 7a 65 20 74 68 65 20 | 47 61 72 44 65 76 69 63 |ize the |GarDevic|
|00003970| 65 20 6f 62 6a 65 63 74 | 2c 20 61 64 64 20 69 74 |e object|, add it|
|00003980| 20 74 6f 20 74 68 65 20 | 54 4c 69 73 74 20 6f 66 | to the |TList of|
|00003990| 20 47 61 72 44 65 76 69 | 63 65 73 2e 20 7d 0d 09 | GarDevi|ces. }..|
|000039a0| 09 09 0d 09 09 50 52 4f | 43 45 44 55 52 45 20 54 |.....PRO|CEDURE T|
|000039b0| 47 61 72 44 65 76 69 63 | 65 2e 50 6f 75 6e 64 43 |GarDevic|e.PoundC|
|000039c0| 6f 6c 6f 72 73 3b 0d 09 | 09 09 7b 20 46 6f 72 63 |olors;..|..{ Forc|
|000039d0| 65 20 74 68 65 20 63 6f | 6c 6f 72 73 20 6f 6e 20 |e the co|lors on |
|000039e0| 74 68 69 73 20 47 61 72 | 44 65 76 69 63 65 20 74 |this Gar|Device t|
|000039f0| 6f 20 68 61 76 65 20 74 | 68 65 20 64 65 73 69 72 |o have t|he desir|
|00003a00| 65 64 20 63 6f 6c 6f 72 | 20 74 61 62 6c 65 20 69 |ed color| table i|
|00003a10| 66 20 70 6f 73 73 69 62 | 6c 65 2e 20 7d 0d 09 09 |f possib|le. }...|
|00003a20| 09 0d 09 09 50 52 4f 43 | 45 44 55 52 45 20 54 47 |....PROC|EDURE TG|
|00003a30| 61 72 44 65 76 69 63 65 | 2e 55 6e 50 6f 75 6e 64 |arDevice|.UnPound|
|00003a40| 43 6f 6c 6f 72 73 3b 0d | 09 09 09 7b 20 52 65 6d |Colors;.|...{ Rem|
|00003a50| 6f 76 65 20 6f 75 72 20 | 66 61 73 63 69 73 74 20 |ove our |fascist |
|00003a60| 63 6f 6c 6f 72 20 6d 61 | 70 70 69 6e 67 20 77 68 |color ma|pping wh|
|00003a70| 65 6e 20 77 65 20 61 72 | 65 20 73 77 69 74 63 68 |en we ar|e switch|
|00003a80| 65 64 20 6f 75 74 2e 20 | 20 52 65 73 74 6f 72 65 |ed out. | Restore|
|00003a90| 20 74 6f 0d 09 09 09 09 | 77 68 61 74 20 74 68 65 | to.....|what the|
|00003aa0| 20 73 79 73 74 65 6d 20 | 77 61 73 20 75 73 69 6e | system |was usin|
|00003ab0| 67 20 6c 61 73 74 2e 20 | 7d 0d 09 09 09 09 0d 09 |g last. |}.......|
|00003ac0| 09 50 52 4f 43 45 44 55 | 52 45 20 54 47 61 72 44 |.PROCEDU|RE TGarD|
|00003ad0| 65 76 69 63 65 2e 52 6f | 74 61 74 65 43 6f 6c 6f |evice.Ro|tateColo|
|00003ae0| 72 73 3b 0d 09 09 09 7b | 20 52 6f 74 61 74 65 20 |rs;....{| Rotate |
|00003af0| 74 68 65 20 63 6f 6c 6f | 72 73 20 6f 6e 20 74 68 |the colo|rs on th|
|00003b00| 69 73 20 47 61 72 44 65 | 76 69 63 65 20 69 66 20 |is GarDe|vice if |
|00003b10| 77 65 20 63 61 6e 2e 20 | 20 41 6e 69 6d 61 74 69 |we can. | Animati|
|00003b20| 6f 6e 20 6f 66 20 63 6f | 6c 6f 72 73 2e 20 7d 0d |on of co|lors. }.|
|00003b30| 09 09 09 0d 09 09 50 52 | 4f 43 45 44 55 52 45 20 |......PR|OCEDURE |
|00003b40| 54 47 61 72 44 65 76 69 | 63 65 2e 53 65 74 55 70 |TGarDevi|ce.SetUp|
|00003b50| 43 6f 6c 6f 72 4d 61 70 | 3b 0d 09 09 09 7b 20 53 |ColorMap|;....{ S|
|00003b60| 61 76 65 20 6f 66 66 20 | 74 68 65 20 63 74 53 65 |ave off |the ctSe|
|00003b70| 65 64 20 6f 66 20 74 68 | 65 20 67 44 65 76 69 63 |ed of th|e gDevic|
|00003b80| 65 20 6f 77 6e 65 64 20 | 62 79 20 74 68 69 73 20 |e owned |by this |
|00003b90| 47 61 72 44 65 76 69 63 | 65 2c 20 6f 72 20 73 65 |GarDevic|e, or se|
|00003ba0| 74 20 75 70 20 74 68 65 | 0d 09 09 09 09 63 6f 6c |t up the|.....col|
|00003bb0| 6f 72 20 73 65 61 72 63 | 68 20 70 72 6f 63 20 74 |or searc|h proc t|
|00003bc0| 6f 20 64 6f 20 74 68 65 | 20 7a 65 62 72 61 20 66 |o do the| zebra f|
|00003bd0| 72 61 63 74 61 6c 73 20 | 69 66 20 6e 6f 74 20 65 |ractals |if not e|
|00003be0| 6e 6f 75 67 68 20 63 6f | 6c 6f 72 73 2e 20 7d 0d |nough co|lors. }.|
|00003bf0| 09 09 09 09 0d 09 09 50 | 52 4f 43 45 44 55 52 45 |.......P|ROCEDURE|
|00003c00| 20 54 47 61 72 44 65 76 | 69 63 65 2e 52 65 6d 6f | TGarDev|ice.Remo|
|00003c10| 76 65 43 6f 6c 6f 72 4d | 61 70 3b 0d 09 09 09 7b |veColorM|ap;....{|
|00003c20| 20 52 65 73 74 6f 72 65 | 20 74 68 65 20 63 74 53 | Restore| the ctS|
|00003c30| 65 65 64 20 6f 66 20 74 | 68 65 20 67 44 65 76 69 |eed of t|he gDevi|
|00003c40| 63 65 2c 20 6f 72 20 72 | 65 6d 6f 76 65 20 74 68 |ce, or r|emove th|
|00003c50| 65 20 63 6f 6c 6f 72 20 | 73 65 61 72 63 68 20 70 |e color |search p|
|00003c60| 72 6f 63 2e 20 7d 0d 09 | 0d 09 45 4e 44 3b 09 7b |roc. }..|..END;.{|
|00003c70| 20 54 47 61 72 44 65 76 | 69 63 65 20 7d 0d 0d 49 | TGarDev|ice }..I|
|00003c80| 4d 50 4c 45 4d 45 4e 54 | 41 54 49 4f 4e 0d 0d 7b |MPLEMENT|ATION..{|
|00003c90| 24 49 20 55 46 72 61 63 | 41 70 70 2e 69 6e 63 31 |$I UFrac|App.inc1|
|00003ca0| 2e 70 7d 0d 0d 45 4e 44 | 2e 0d 00 00 00 00 00 00 |.p}..END|........|
|00003cb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003cc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003cd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003ce0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003cf0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003d00| 00 00 01 00 00 00 01 9c | 00 00 00 9c 00 00 00 52 |........|.......R|
|00003d10| 44 4f 43 55 4d 45 4e 00 | 00 4e ad 04 62 d4 44 4f |DOCUMEN.|.N..b.DO|
|00003d20| 43 55 4d 45 4e 00 00 4e | ad 04 62 d4 44 4f 43 55 |CUMEN..N|..b.DOCU|
|00003d30| 0a 55 46 72 61 63 41 70 | 70 2e 70 63 02 00 00 00 |.UFracAp|p.pc....|
|00003d40| 54 45 58 54 4d 50 53 20 | 01 00 00 00 01 40 00 00 |TEXTMPS |.....@..|
|00003d50| 00 00 54 45 58 54 4d 50 | 53 20 01 00 00 00 01 40 |..TEXTMP|S .....@|
|00003d60| 00 00 01 b6 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003d70| 00 00 9c c4 e4 50 00 00 | 3c 2a 00 00 01 ee 62 d4 |.....P..|<*....b.|
|00003d80| 44 4f 43 55 4d 45 4e 00 | 00 4e ad 04 62 d4 44 4f |DOCUMEN.|.N..b.DO|
|00003d90| 43 55 4d 45 4e 00 00 4e | ad 04 62 d4 44 4f 43 55 |CUMEN..N|..b.DOCU|
|00003da0| 4d 45 4e 00 00 4e ad 04 | 62 d4 44 4f 43 55 4d 45 |MEN..N..|b.DOCUME|
|00003db0| 4e 00 00 4e ad 04 62 d4 | 44 4f 43 55 4d 45 4e 00 |N..N..b.|DOCUMEN.|
|00003dc0| 00 4e ad 04 62 d4 46 52 | 41 4d 45 24 49 00 00 4e |.N..b.FR|AME$I..N|
|00003dd0| ad 04 62 d4 46 52 41 4d | 45 24 41 00 00 4e ad 04 |..b.FRAM|E$A..N..|
|00003de0| 62 d4 46 52 41 4d 45 24 | 45 00 00 4e ad 04 62 d4 |b.FRAME$|E..N..b.|
|00003df0| 46 52 41 4d 45 24 46 00 | 00 4e ad 04 62 d4 46 52 |FRAME$F.|.N..b.FR|
|00003e00| 00 00 00 02 00 00 00 00 | 00 48 00 09 4d 6f 6e 61 |........|.H..Mona|
|00003e10| 63 6f 00 63 61 00 00 00 | 00 00 00 00 00 00 00 00 |co.ca...|........|
|00003e20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 06 00 04 |........|........|
|00003e30| 00 27 00 00 01 df 02 30 | 00 27 00 00 01 df 02 30 |.'.....0|.'.....0|
|00003e40| 9f 1a 45 5c 00 00 00 00 | 00 00 00 00 00 00 00 00 |..E\....|........|
|00003e50| 01 00 00 00 00 46 00 04 | 00 00 18 e2 00 00 18 ed |.....F..|........|
|00003e60| 0b 41 70 70 6c 69 63 61 | 74 69 6f 6e 00 00 1e b0 |.Applica|tion....|
|00003e70| 00 00 1e b8 09 44 6f 63 | 75 6d 65 6e 74 00 00 00 |.....Doc|ument...|
|00003e80| 2c 0c 00 00 2c 10 05 56 | 69 65 77 00 00 00 31 9c |,...,..V|iew...1.|
|00003e90| 00 00 31 a3 07 43 6f 6d | 6d 61 6e 64 00 00 01 00 |..1..Com|mand....|
|00003ea0| 00 00 01 9c 00 00 00 9c | 00 00 00 52 00 05 bb e8 |........|...R....|
|00003eb0| 04 c8 00 00 00 1c 00 52 | 00 01 45 51 45 44 00 00 |.......R|..EQED..|
|00003ec0| 00 12 4d 50 53 52 00 01 | 00 1e 03 eb ff ff 00 00 |..MPSR..|........|
|00003ed0| 00 00 00 00 00 00 03 ed | ff ff 00 00 00 06 00 00 |........|........|
|00003ee0| 00 00 03 ef ff ff 00 00 | 00 52 00 00 00 00 00 00 |........|.R......|
|00003ef0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+